feat: UI refinements for album/playlist views and NowPlayingBar

- Song-card min-width: 640px → 580px
- AlbumDetailView: artwork 280px → 224px (-20%)
- AlbumDetailView: album title 28px → 26px (-2pts)
- AlbumDetailView: buttons border-radius 20px → 8px (not pills)
- PlaylistDetailView: artwork 232px → 186px (-20%)
- PlaylistDetailView: buttons border-radius 24px → 8px
- UserCard: remove collapse/logout buttons (only settings)
- NowPlayingBar: remove max-width on meta-link for album name
This commit is contained in:
vicrodh committed 2026-01-10 23:42:10 -06:00
1 parent 266b5e2029
commit 17bc752169
4 files changed
+39 -134

No files matched your search

+1 -2
View File
@@ -527,7 +527,7 @@
background: rgba(255, 255, 255, 0.04);
border-radius: 8px;
max-width: 700px;
min-width: 640px;
min-width: 580px;
}
.artwork-container {
@@ -624,7 +624,6 @@
font-size: 11px;
cursor: pointer;
transition: color 150ms ease;
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+29 -123
View File
@@ -1,5 +1,5 @@
<script lang="ts">
import { Settings, LogOut, ChevronDown, ChevronUp } from 'lucide-svelte';
import { Settings } from 'lucide-svelte';
interface Props {
username: string;
@@ -9,73 +9,37 @@
onLogout?: () => void;
}
let { username, subscription, avatarUrl, onSettingsClick, onLogout }: Props = $props();
let isCollapsed = $state(false);
let { username, subscription, avatarUrl, onSettingsClick }: Props = $props();
</script>
{#if isCollapsed}
<!-- Collapsed view -->
<button class="collapsed-card" onclick={() => isCollapsed = false}>
<div class="mini-logo">Q</div>
<span class="collapsed-username">{username}</span>
<ChevronDown size={12} />
</button>
{:else}
<!-- Expanded view -->
<div class="user-card">
<!-- Avatar -->
<div class="avatar">
{#if avatarUrl}
<img src={avatarUrl} alt={username} />
{:else}
{username.charAt(0).toUpperCase()}
{/if}
</div>
<!-- User Info -->
<div class="user-info">
<div class="username">{username}</div>
<div class="subscription">{subscription}</div>
</div>
<!-- Action Buttons -->
<div class="action-buttons">
<button
class="action-btn"
onclick={(e) => {
e.stopPropagation();
onSettingsClick();
}}
title="Settings"
>
<Settings size={14} />
</button>
{#if onLogout}
<button
class="action-btn logout-btn"
onclick={(e) => {
e.stopPropagation();
onLogout();
}}
title="Logout"
>
<LogOut size={14} />
</button>
{/if}
<button
class="action-btn collapse-btn"
onclick={(e) => {
e.stopPropagation();
isCollapsed = true;
}}
title="Collapse"
>
<ChevronUp size={14} />
</button>
</div>
<div class="user-card">
<!-- Avatar -->
<div class="avatar">
{#if avatarUrl}
<img src={avatarUrl} alt={username} />
{:else}
{username.charAt(0).toUpperCase()}
{/if}
</div>
{/if}
<!-- User Info -->
<div class="user-info">
<div class="username">{username}</div>
<div class="subscription">{subscription}</div>
</div>
<!-- Settings Button -->
<button
class="action-btn"
onclick={(e) => {
e.stopPropagation();
onSettingsClick();
}}
title="Settings"
>
<Settings size={14} />
</button>
</div>
<style>
.user-card {
@@ -135,12 +99,6 @@
white-space: nowrap;
}
.action-buttons {
display: flex;
align-items: center;
gap: 2px;
}
.action-btn {
width: 22px;
height: 22px;
@@ -160,56 +118,4 @@
color: var(--text-primary);
background-color: var(--bg-tertiary);
}
.logout-btn:hover {
color: #ff6b6b;
}
/* Collapsed state */
.collapsed-card {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 6px 8px;
border-radius: 6px;
background: none;
border: none;
cursor: pointer;
transition: background-color 150ms ease;
color: var(--text-primary);
}
.collapsed-card:hover {
background-color: var(--bg-hover);
}
.mini-logo {
width: 20px;
height: 20px;
border-radius: 4px;
background-color: var(--accent-primary);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 700;
font-size: 10px;
flex-shrink: 0;
}
.collapsed-username {
flex: 1;
font-size: 12px;
font-weight: 500;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.collapsed-card :global(svg) {
color: var(--text-muted);
flex-shrink: 0;
}
</style>
@@ -285,8 +285,8 @@
.artwork {
flex-shrink: 0;
width: 280px;
height: 280px;
width: 224px;
height: 224px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
@@ -306,7 +306,7 @@
}
.album-title {
font-size: 28px;
font-size: 26px;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 4px;
@@ -355,7 +355,7 @@
.play-btn {
height: 40px;
padding: 0 24px;
border-radius: 20px;
border-radius: 8px;
border: none;
display: flex;
align-items: center;
@@ -373,7 +373,7 @@
.secondary-btn {
height: 40px;
padding: 0 24px;
border-radius: 20px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.3);
background: transparent;
display: flex;
@@ -736,8 +736,8 @@
}
.artwork {
width: 232px;
height: 232px;
width: 186px;
height: 186px;
position: relative;
border-radius: 8px;
overflow: hidden;
@@ -869,7 +869,7 @@
background-color: var(--accent-primary);
color: white;
border: none;
border-radius: 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
@@ -884,7 +884,7 @@
background-color: transparent;
color: var(--text-primary);
border: 1px solid var(--text-muted);
border-radius: 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;