diff --git a/src/App.vue b/src/App.vue index 3a46e1d1..727293b8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -80,13 +80,7 @@ onStartTyping((e) => { elem.value = ""; }); -function updateContentElemSize({ - width, - height, -}: { - width: number; - height: number; -}) { +function updateContentElemSize({ width }: { width: number }) { content_width.value = width; } diff --git a/src/assets/scss/Global/app-grid.scss b/src/assets/scss/Global/app-grid.scss index f7513345..0d418059 100644 --- a/src/assets/scss/Global/app-grid.scss +++ b/src/assets/scss/Global/app-grid.scss @@ -54,16 +54,6 @@ $g-border: solid 1px $gray5; padding-right: calc(1rem - $small + 2px); } -.v-scroll-page { - width: calc(100% + $medium) !important; - - .scroller { - height: 100%; - width: 100%; - padding-right: $small !important; - } -} - // ====== MODIFIERS ======= #app-grid.extendWidth { @@ -95,3 +85,43 @@ $g-border: solid 1px $gray5; border-right: none; border-left: none; } + +.v-scroll-page { + width: calc(100% + $medium) !important; + + .scroller { + height: 100%; + width: 100%; + padding-right: $small !important; + } +} + +.v-scroll-page.isSmall { + // hide album and artists columns + .songlist-item { + grid-template-columns: 1.5rem 2fr 2.5rem 2.5rem; + } + + .song-artists, + .song-album { + display: none !important; + } + + .isSmallArtists { + display: unset !important; + font-size: small; + color: $white; + opacity: 0.67; + } +} + +.v-scroll-page.isMedium { + // hide album column + .songlist-item { + grid-template-columns: 1.5rem 1.5fr 1fr 2.5rem 2.5rem; + } + + .song-album { + display: none !important; + } +} diff --git a/src/components/AlbumView/Header.vue b/src/components/AlbumView/Header.vue index 1f23e394..445ab3da 100644 --- a/src/components/AlbumView/Header.vue +++ b/src/components/AlbumView/Header.vue @@ -10,7 +10,7 @@ : '', }" > -
+
-
+
(); const emit = defineEmits<{ diff --git a/src/layouts/HeaderAndVList.vue b/src/layouts/HeaderAndVList.vue index f09a1049..f2c6c965 100644 --- a/src/layouts/HeaderAndVList.vue +++ b/src/layouts/HeaderAndVList.vue @@ -1,5 +1,5 @@