Skip to content

fix(layout): tighten chrome density for 1080p#65

Merged
InstaZDLL merged 1 commit into
mainfrom
fix/library-1080p-density
May 18, 2026
Merged

fix(layout): tighten chrome density for 1080p#65
InstaZDLL merged 1 commit into
mainfrom
fix/library-1080p-density

Conversation

@InstaZDLL
Copy link
Copy Markdown
Owner

@InstaZDLL InstaZDLL commented May 18, 2026

Summary

Sub-bug D of #54: the Library view (Album Detail in particular) felt crowded at 1920×1080, especially with the side lyrics panel open. The hero blocks were dimensioned for 4K — once the main column dropped to ~600 px the album title truncated mid-word and the page felt top-heavy.

What changed

Three coordinated trims; no grammar change to the design language.

File Before After
TopBar.tsx h-20 px-8 h-16 px-6
LibraryView.tsx hero space-y-8 pb-20, icon w-24 h-24 (size=48), title text-4xl mb-2, button px-4 py-2.5 space-y-6 pb-12, icon w-20 h-20 (size=40), title text-3xl md:text-4xl mb-1, button px-4 py-2
AlbumDetailView.tsx hero space-y-8 pb-20, cover w-48 h-48, space-x-8, title text-4xl truncate, three buttons px-5 py-2.5 no wrap space-y-6 pb-12, cover w-44 h-44, space-x-6, title text-3xl md:text-4xl line-clamp-2, buttons px-4 py-2 with flex-wrap gap-2

Net effect

On a 1080p / 125 % DPI viewport:

  • TopBar drops 16 px of vertical chrome above every view.
  • AlbumDetail hero loses about 60 px of vertical bulk.
  • Long album titles wrap to a second line instead of ellipsizing when the lyrics panel is open.
  • Action buttons can wrap to a second row when the column gets narrow, rather than overflowing.

On a 4K / 100 % DPI display the heroes are very slightly more compact but still clearly the page anchor — the responsive md:text-4xl keeps the title at its original size on wide viewports.

Test plan

  • bun run typecheck
  • bun run lint
  • 1920×1080 with lyrics panel open: album title visible on two lines, no truncation; buttons fit (wrap if needed)
  • Same resolution, lyrics panel closed: title on one line, no wrap
  • 2560×1440: heroes look balanced, not "shrunk"
  • 3840×2160: heroes don't look out of proportion, title at text-4xl

Related

Closes sub-bug D of #54. Sub-bug E (README screenshots) is the only piece of #54 still pending.

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.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 18, 2026

Warning

Rate limit exceeded

@InstaZDLL has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 43 minutes and 44 seconds before requesting another review.

To continue reviewing without waiting, purchase usage credits in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: ef992369-9782-448a-91d2-127e96f149bf

📥 Commits

Reviewing files that changed from the base of the PR and between 5207028 and 73ff66e.

📒 Files selected for processing (3)
  • src/components/layout/TopBar.tsx
  • src/components/views/AlbumDetailView.tsx
  • src/components/views/LibraryView.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/library-1080p-density

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added scope: frontend React/Vite frontend (src/) type: fix Bug fix size: s 10-50 lines labels May 18, 2026
@InstaZDLL InstaZDLL self-assigned this May 18, 2026
@InstaZDLL InstaZDLL merged commit d6c4642 into main May 18, 2026
13 checks passed
@InstaZDLL InstaZDLL deleted the fix/library-1080p-density branch May 18, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: frontend React/Vite frontend (src/) size: s 10-50 lines type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant