From 73ff66ea9f27980912a18481911764c89f9d1baf Mon Sep 17 00:00:00 2001 From: InstaZDLL Date: Tue, 19 May 2026 00:59:04 +0200 Subject: [PATCH] fix(layout): tighten chrome density for 1080p (#54 D) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sub-bug D from #54: the Library view felt crowded at 1920x1080, especially with the side lyrics panel open. The hero blocks were sized for a 4K display — once the main column dropped to ~600 px the album title truncated mid-word and the page felt top-heavy. Three coordinated trims, no grammar change to the design language: - **TopBar**: `h-20 px-8` to `h-16 px-6`. Saves 16 px of vertical chrome above every view; the search bar still has comfortable touch targets. - **LibraryView hero**: `space-y-8 pb-20` to `space-y-6 pb-12`; icon tile `w-24 h-24` (Music2 size=48) to `w-20 h-20` (size=40); title responsive `text-3xl md:text-4xl` so 1080p doesn't get the 4K size; action button padding `px-4 py-2.5` to `px-4 py-2`. - **AlbumDetailView hero**: `space-y-8 pb-20` to `space-y-6 pb-12`; cover `w-48 h-48` to `w-44 h-44` and gap to it from `space-x-8` to `space-x-6`; title `text-4xl ... truncate` to `text-3xl md:text-4xl ... line-clamp-2` so long names wrap into a second line instead of ellipsizing when the lyrics panel is open; action button padding `px-5 py-2.5` to `px-4 py-2`, and the row flips to `flex-wrap gap-2` so the three buttons wrap rather than overflow. Net effect on a 1080p / 125 % DPI viewport: the album hero loses about 60 px of vertical bulk and the title is readable on two lines when the lyrics panel takes part of the width. 4K screens see a slightly more compact hero — still clearly the page anchor. --- src/components/layout/TopBar.tsx | 2 +- src/components/views/AlbumDetailView.tsx | 29 +++++++++++++----------- src/components/views/LibraryView.tsx | 12 +++++----- 3 files changed, 23 insertions(+), 20 deletions(-) diff --git a/src/components/layout/TopBar.tsx b/src/components/layout/TopBar.tsx index 9ebefd2..0a99162 100644 --- a/src/components/layout/TopBar.tsx +++ b/src/components/layout/TopBar.tsx @@ -255,7 +255,7 @@ export function TopBar({ }; return ( -
+
{/* Navigation Arrows */}
)} {/* Meta */} -
+
{album.year && {album.year}} {album.year && label && ·} {label && {label}} @@ -264,7 +267,7 @@ export function AlbumDetailView({ {/* Genres */} {album.genres.length > 0 && ( -
+
{album.genres.map((genre) => ( +