From 22c66ae353e2654f129b64f3a72ecea0bf3a2b39 Mon Sep 17 00:00:00 2001 From: dkanada Date: Sat, 6 Feb 2021 15:45:48 +0900 Subject: [PATCH] add images to available plugins as well --- src/components/cardbuilder/card.css | 2 +- src/controllers/dashboard/devices/devices.js | 3 ++- src/controllers/dashboard/plugins/available/index.js | 7 ++++++- src/controllers/dashboard/plugins/installed/index.js | 3 ++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/cardbuilder/card.css b/src/components/cardbuilder/card.css index 99a8526d92..5eef7fc324 100644 --- a/src/components/cardbuilder/card.css +++ b/src/components/cardbuilder/card.css @@ -365,7 +365,7 @@ button::-moz-focus-inner { } .cardImageIcon { - font-size: 5em; + font-size: 5em !important; color: inherit; } diff --git a/src/controllers/dashboard/devices/devices.js b/src/controllers/dashboard/devices/devices.js index d2cb0ad8c8..448ad35271 100644 --- a/src/controllers/dashboard/devices/devices.js +++ b/src/controllers/dashboard/devices/devices.js @@ -4,6 +4,7 @@ import globalize from '../../../scripts/globalize'; import imageHelper from '../../../scripts/imagehelper'; import { formatDistanceToNow } from 'date-fns'; import { localeWithSuffix } from '../../../scripts/dfnshelper'; +import * as cardBuilder from '../../../components/cardbuilder/cardBuilder.js'; import '../../../elements/emby-button/emby-button'; import '../../../elements/emby-itemscontainer/emby-itemscontainer'; import '../../../components/cardbuilder/card.css'; @@ -96,7 +97,7 @@ import confirm from '../../../components/confirm/confirm'; deviceHtml += '
'; deviceHtml += ''; diff --git a/src/controllers/dashboard/plugins/installed/index.js b/src/controllers/dashboard/plugins/installed/index.js index aa1032d57d..b7a1e3aede 100644 --- a/src/controllers/dashboard/plugins/installed/index.js +++ b/src/controllers/dashboard/plugins/installed/index.js @@ -67,10 +67,11 @@ function getPluginCardHtml(plugin, pluginConfigurationPages) { html += '
'; } - html += ``; + html += ``; if (plugin.HasImage) { html += ``; } + html += ''; html += configPageUrl ? '' : '
'; html += '
';