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
This commit is contained in:
vicrodh committed 2026-01-25 03:56:01 -06:00
1 parent 641ac30078
commit 01f75e098e
1 file changed
+39 -40
+39 -40
View File
@@ -130,17 +130,23 @@
</p> </p>
{/if} {/if}
<div class="quality-badges"> {#if credits.album.bit_depth || credits.album.sampling_rate}
{#if credits.album.bit_depth} <div class="quality-info">
<span class="badge">{credits.album.bit_depth}-Bit</span> {#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 credits.album.sampling_rate} </div>
<span class="badge">{credits.album.sampling_rate} kHz</span>
{/if} {/if}
</div> </div>
</div> </div>
</div> </div>
<!-- Right column: Track list or Review (scrollable) -->
<div class="content-column">
<!-- Tab switcher (only shown if review exists) --> <!-- Tab switcher (only shown if review exists) -->
{#if hasReview} {#if hasReview}
<div class="tab-switcher"> <div class="tab-switcher">
@@ -160,10 +166,7 @@
</button> </button>
</div> </div>
{/if} {/if}
</div>
<!-- Right column: Track list or Review (scrollable) -->
<div class="content-column">
{#if activeTab === 'credits'} {#if activeTab === 'credits'}
<div class="tracks-list"> <div class="tracks-list">
{#each credits.tracks as track, index (track.id)} {#each credits.tracks as track, index (track.id)}
@@ -271,7 +274,7 @@
border: 1px solid rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px; border-radius: 12px;
width: 100%; width: 100%;
max-width: 800px; max-width: 850px;
height: calc(80vh - 5px); height: calc(80vh - 5px);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -391,7 +394,7 @@
/* Left column: Album info */ /* Left column: Album info */
.album-column { .album-column {
width: 200px; width: 260px;
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -404,8 +407,8 @@
} }
.album-artwork { .album-artwork {
width: 200px; width: 260px;
height: 200px; height: 260px;
border-radius: 8px; border-radius: 8px;
object-fit: cover; object-fit: cover;
} }
@@ -440,29 +443,20 @@
margin: 0 4px; margin: 0 4px;
} }
.quality-badges { .quality-info {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px; margin-top: 12px;
} font-size: 13px;
.badge {
padding: 4px 8px;
background: var(--bg-tertiary);
border-radius: 4px;
font-size: 11px;
font-weight: 500;
color: var(--text-secondary); color: var(--text-secondary);
} }
/* Tab switcher at bottom of album column */ /* Tab switcher above content */
.tab-switcher { .tab-switcher {
flex-shrink: 0; flex-shrink: 0;
padding-top: 16px;
margin-top: auto;
display: flex; display: flex;
gap: 16px; gap: 16px;
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
} }
.tab-btn { .tab-btn {
@@ -488,13 +482,16 @@
.content-column { .content-column {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
overflow-y: auto; overflow-y: scroll;
display: flex;
flex-direction: column;
} }
/* Track list */ /* Track list */
.tracks-list { .tracks-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding-right: 8px;
} }
.track-item { .track-item {
@@ -511,7 +508,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 12px; gap: 12px;
padding: 10px 0; padding: 9px 0;
background: none; background: none;
border: none; border: none;
text-align: left; text-align: left;
@@ -658,24 +655,26 @@
} }
/* Scrollbar styling for content column */ /* Scrollbar styling for content column */
.content-column::-webkit-scrollbar, .content-column::-webkit-scrollbar {
.album-info-scroll::-webkit-scrollbar { width: 8px;
width: 6px;
} }
.content-column::-webkit-scrollbar-track, .content-column::-webkit-scrollbar-track {
.album-info-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03);
background: transparent; border-radius: 4px;
} }
.content-column::-webkit-scrollbar-thumb, .content-column::-webkit-scrollbar-thumb {
.album-info-scroll::-webkit-scrollbar-thumb {
background: var(--bg-tertiary); background: var(--bg-tertiary);
border-radius: 3px; border-radius: 4px;
} }
.content-column::-webkit-scrollbar-thumb:hover, .content-column::-webkit-scrollbar-thumb:hover {
.album-info-scroll::-webkit-scrollbar-thumb:hover {
background: var(--text-muted); background: var(--text-muted);
} }
/* Album info scroll (hidden scrollbar) */
.album-info-scroll::-webkit-scrollbar {
width: 0;
}
</style> </style>