1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #797 from dkanada/style

Fix some minor style issues
This commit is contained in:
Vasily 2020-02-14 14:21:02 +03:00 committed by GitHub
commit 85a6a444fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 7 deletions

View file

@ -227,6 +227,7 @@
.centerMessage { .centerMessage {
margin: auto; margin: auto;
width: 30%; width: 30%;
padding: 5em 0;
text-align: center; text-align: center;
} }

View file

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M24 19H0a13.6 13.6 0 0 1 2.21-6.07A11.2 11.2 0 0 1 5.87 9.4l.41-.23-2.02-3.41a.51.51 0 0 1 .17-.7.5.5 0 0 1 .69.18l2.08 3.5a12.62 12.62 0 0 1 4.84-.9 12.2 12.2 0 0 1 4.75.9l2.07-3.5a.5.5 0 0 1 .7-.17.51.51 0 0 1 .16.7L17.7 9.19l.5.28a11.38 11.38 0 0 1 3.63 3.62A14.48 14.48 0 0 1 24 19zm-7.5-4.48a1 1 0 0 0 1 1 1 1 0 0 0 1-1 1 1 0 0 0-1-1 1 1 0 0 0-1 1zm-11 0a1 1 0 0 0 1 1 1 1 0 0 0 1-1 1 1 0 0 0-1-1 1 1 0 0 0-1 1z"/> <path d="M24 19H0a13.6 13.6 0 0 1 2.21-6.07A11.2 11.2 0 0 1 5.87 9.4l.41-.23-2.02-3.41a.51.51 0 0 1 .17-.7.5.5 0 0 1 .69.18l2.08 3.5a12.62 12.62 0 0 1 4.84-.9 12.2 12.2 0 0 1 4.75.9l2.07-3.5a.5.5 0 0 1 .7-.17.51.51 0 0 1 .16.7L17.7 9.19l.5.28a11.38 11.38 0 0 1 3.63 3.62A14.48 14.48 0 0 1 24 19zm-7.5-4.48a1 1 0 0 0 1 1 1 1 0 0 0 1-1 1 1 0 0 0-1-1 1 1 0 0 0-1 1zm-11 0a1 1 0 0 0 1 1 1 1 0 0 0 1-1 1 1 0 0 0-1-1 1 1 0 0 0-1 1z" fill="#fff"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 551 B

After

Width:  |  Height:  |  Size: 563 B

Before After
Before After

View file

@ -371,12 +371,12 @@ button::-moz-focus-inner {
} }
.cardImageIcon { .cardImageIcon {
font-size: 5em; font-size: 5em !important;
color: inherit; color: inherit;
} }
.cardImageIcon-small { .cardImageIcon-small {
font-size: 3em; font-size: 3em !important;
margin-bottom: 0.1em; margin-bottom: 0.1em;
} }

View file

@ -82,9 +82,11 @@ define(["loading", "libraryMenu", "dom", "globalize", "cardStyle", "emby-button"
return -1; return -1;
}); });
var html = plugins.map(function (p) { var html = plugins.map(function (p) {
return getPluginCardHtml(p, pluginConfigurationPages); return getPluginCardHtml(p, pluginConfigurationPages);
}).join(""); }).join("");
var installedPluginsElement = page.querySelector(".installedPlugins"); var installedPluginsElement = page.querySelector(".installedPlugins");
installedPluginsElement.removeEventListener("click", onInstalledPluginsClick); installedPluginsElement.removeEventListener("click", onInstalledPluginsClick);
installedPluginsElement.addEventListener("click", onInstalledPluginsClick); installedPluginsElement.addEventListener("click", onInstalledPluginsClick);
@ -93,8 +95,8 @@ define(["loading", "libraryMenu", "dom", "globalize", "cardStyle", "emby-button"
installedPluginsElement.classList.add("itemsContainer"); installedPluginsElement.classList.add("itemsContainer");
installedPluginsElement.classList.add("vertical-wrap"); installedPluginsElement.classList.add("vertical-wrap");
} else { } else {
html += '<div style="padding:5px;">'; html += '<div class="centerMessage">';
html += "<p>" + globalize.translate("MessageNoPluginsInstalled") + "</p>"; html += "<h1>" + globalize.translate("MessageNoPluginsInstalled") + "</h1>";
html += '<p><a is="emby-linkbutton" class="button-link" href="availableplugins.html">'; html += '<p><a is="emby-linkbutton" class="button-link" href="availableplugins.html">';
html += globalize.translate("BrowsePluginCatalogMessage"); html += globalize.translate("BrowsePluginCatalogMessage");
html += "</a></p>"; html += "</a></p>";
@ -135,9 +137,9 @@ define(["loading", "libraryMenu", "dom", "globalize", "cardStyle", "emby-button"
case "open": case "open":
Dashboard.navigate(configHref); Dashboard.navigate(configHref);
break; break;
case "delete": case "delete":
deletePlugin(page, id, name); deletePlugin(page, id, name);
break;
} }
} }
}); });
@ -168,7 +170,6 @@ define(["loading", "libraryMenu", "dom", "globalize", "cardStyle", "emby-button"
showConnectMessage(); showConnectMessage();
} else { } else {
var btnCardMenu = dom.parentWithClass(e.target, "btnCardMenu"); var btnCardMenu = dom.parentWithClass(e.target, "btnCardMenu");
if (btnCardMenu) { if (btnCardMenu) {
showPluginMenu(dom.parentWithClass(btnCardMenu, "page"), btnCardMenu); showPluginMenu(dom.parentWithClass(btnCardMenu, "page"), btnCardMenu);
} }
@ -179,6 +180,7 @@ define(["loading", "libraryMenu", "dom", "globalize", "cardStyle", "emby-button"
libraryMenu.setTabs("plugins", 0, getTabs); libraryMenu.setTabs("plugins", 0, getTabs);
reloadList(this); reloadList(this);
}); });
window.PluginsPage = { window.PluginsPage = {
renderPlugins: renderPlugins renderPlugins: renderPlugins
}; };