From 7ef4e9dd74248f2aacaaa154cc42d09ef4d6677e Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 10 Nov 2018 05:16:25 +0100 Subject: [PATCH] [web-src] Make artwork responsive, change error handling if an item has no artwork plus some small styling changes --- web-src/src/mystyles.css | 32 +++++++++++++++++++ web-src/src/pages/PageNowPlaying.vue | 46 +++++++++++++++++----------- web-src/src/store/index.js | 3 +- web-src/vue.config.js | 5 ++- 4 files changed, 65 insertions(+), 21 deletions(-) diff --git a/web-src/src/mystyles.css b/web-src/src/mystyles.css index cd90a98d..3f1e4353 100644 --- a/web-src/src/mystyles.css +++ b/web-src/src/mystyles.css @@ -30,12 +30,40 @@ a.navbar-item { cursor: move; } +.fd-has-margin-top { + margin-top: 24px; +} + +.fd-has-margin-bottom { + margin-bottom: 24px; +} + +.fd-has-padding-left-right { + padding-left: 24px; + padding-right: 24px; +} + .fd-is-text-clipped { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.fd-is-fullheight { + height: calc(100vh - 3.25rem - 3.25rem); +} + +.fd-is-fullheight-body { + flex-shrink: 1; + overflow: hidden; + height: 100% +} + +.fd-image-fullheight { + height: 100%; + width: auto; +} + .fd-tabs-section { padding-bottom: 0; } @@ -44,6 +72,10 @@ a.navbar-item { top: 52px !important; } +.fd-has-shadow { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); +} + .sortable-chosen .media-right { visibility: hidden; } diff --git a/web-src/src/pages/PageNowPlaying.vue b/web-src/src/pages/PageNowPlaying.vue index 7d6d9601..7c294ca4 100644 --- a/web-src/src/pages/PageNowPlaying.vue +++ b/web-src/src/pages/PageNowPlaying.vue @@ -1,18 +1,23 @@