From 01f75e098e0ad1a46371450cfc31468fc7609e2d Mon Sep 17 00:00:00 2001
From: vicrodh <103399283+vicrodh@users.noreply.github.com>
Date: Sun, 25 Jan 2026 03:56:01 -0600
Subject: [PATCH] Adjust AlbumCreditsModal layout and styling
- Increase modal width to 850px
- Increase album column to 260px (with larger artwork)
- Move tab switcher above track list/review content
- Reduce track row height by 2px (9px padding instead of 10px)
- Combine quality badges into single "24-Bit / 96 kHz" format
- Make scrollbar always visible and not overlay content
- Add padding to tracks list for scrollbar space
---
src/lib/components/AlbumCreditsModal.svelte | 85 ++++++++++-----------
1 file changed, 42 insertions(+), 43 deletions(-)
diff --git a/src/lib/components/AlbumCreditsModal.svelte b/src/lib/components/AlbumCreditsModal.svelte
index 6a62d6848..4329f4fe5 100644
--- a/src/lib/components/AlbumCreditsModal.svelte
+++ b/src/lib/components/AlbumCreditsModal.svelte
@@ -130,17 +130,23 @@
{/if}
-
+ {#if credits.album.bit_depth && credits.album.sampling_rate}
+ {credits.album.bit_depth}-Bit / {credits.album.sampling_rate} kHz
+ {:else if credits.album.bit_depth}
+ {credits.album.bit_depth}-Bit
+ {:else if credits.album.sampling_rate}
+ {credits.album.sampling_rate} kHz
+ {/if}
+
+ {/if}
+
+
+
{#if activeTab === 'credits'}
{#each credits.tracks as track, index (track.id)}
@@ -271,7 +274,7 @@
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
width: 100%;
- max-width: 800px;
+ max-width: 850px;
height: calc(80vh - 5px);
display: flex;
flex-direction: column;
@@ -391,7 +394,7 @@
/* Left column: Album info */
.album-column {
- width: 200px;
+ width: 260px;
flex-shrink: 0;
display: flex;
flex-direction: column;
@@ -404,8 +407,8 @@
}
.album-artwork {
- width: 200px;
- height: 200px;
+ width: 260px;
+ height: 260px;
border-radius: 8px;
object-fit: cover;
}
@@ -440,29 +443,20 @@
margin: 0 4px;
}
- .quality-badges {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
+ .quality-info {
margin-top: 12px;
- }
-
- .badge {
- padding: 4px 8px;
- background: var(--bg-tertiary);
- border-radius: 4px;
- font-size: 11px;
- font-weight: 500;
+ font-size: 13px;
color: var(--text-secondary);
}
- /* Tab switcher at bottom of album column */
+ /* Tab switcher above content */
.tab-switcher {
flex-shrink: 0;
- padding-top: 16px;
- margin-top: auto;
display: flex;
gap: 16px;
+ margin-bottom: 12px;
+ padding-bottom: 12px;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tab-btn {
@@ -488,13 +482,16 @@
.content-column {
flex: 1;
min-width: 0;
- overflow-y: auto;
+ overflow-y: scroll;
+ display: flex;
+ flex-direction: column;
}
/* Track list */
.tracks-list {
display: flex;
flex-direction: column;
+ padding-right: 8px;
}
.track-item {
@@ -511,7 +508,7 @@
display: flex;
align-items: center;
gap: 12px;
- padding: 10px 0;
+ padding: 9px 0;
background: none;
border: none;
text-align: left;
@@ -658,24 +655,26 @@
}
/* Scrollbar styling for content column */
- .content-column::-webkit-scrollbar,
- .album-info-scroll::-webkit-scrollbar {
- width: 6px;
+ .content-column::-webkit-scrollbar {
+ width: 8px;
}
- .content-column::-webkit-scrollbar-track,
- .album-info-scroll::-webkit-scrollbar-track {
- background: transparent;
+ .content-column::-webkit-scrollbar-track {
+ background: rgba(255, 255, 255, 0.03);
+ border-radius: 4px;
}
- .content-column::-webkit-scrollbar-thumb,
- .album-info-scroll::-webkit-scrollbar-thumb {
+ .content-column::-webkit-scrollbar-thumb {
background: var(--bg-tertiary);
- border-radius: 3px;
+ border-radius: 4px;
}
- .content-column::-webkit-scrollbar-thumb:hover,
- .album-info-scroll::-webkit-scrollbar-thumb:hover {
+ .content-column::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
+
+ /* Album info scroll (hidden scrollbar) */
+ .album-info-scroll::-webkit-scrollbar {
+ width: 0;
+ }