Skip to content

Stack lyrics below art on portrait displays; fix player.js syntax error - #18

Merged
QrowZK merged 1 commit into
mainfrom
claude/portrait-now-playing
Sep 15, 2026
Merged

QrowZK merged 1 commit into
mainfrom
claude/portrait-now-playing

Conversation

@QrowZK

@QrowZK QrowZK commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Portrait Now Playing

On a vertical monitor the Now Playing screen tried to fit art, info, and lyrics as three columns, squeezing the title to one word per line. Under @media (orientation: portrait) the lyrics now drop below the art + info row as a full-width, centered column; art is capped by height so the whole thing fits without scrolling the page. Landscape is untouched.

Syntax error on main

src/js/player.js on current main has c.cueEnd ?? this.el.duration || 0 — mixing ?? with || without parentheses is a hard SyntaxError, so the renderer never booted (blank library, "Nothing playing"). Fixed with explicit parentheses. Every other JS file passes a syntax check.

Verification

Live 1080×1920 Xvfb screenshot of the Now Playing screen with a synced .lrc loaded — art + info row on top, lyrics centered below.

🤖 Generated with Claude Code

https://claude.ai/code/session_0125mBkda6C4Yv2CiekXA6uW


Generated by Claude Code

On a vertical monitor the Now Playing screen tried to fit art, info, and
lyrics as three columns, squeezing the title to one word per line. In
portrait orientation the lyrics now drop below the art + info row as a
full-width, centered column.

Also fixes a SyntaxError in player.js (`??` mixed with `||` without
parentheses in the cue-sheet duration getter) that prevented the renderer
from booting at all on the current main.

Verified with a live 1080x1920 Xvfb screenshot of the Now Playing screen
with a synced .lrc loaded.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0125mBkda6C4Yv2CiekXA6uW
@QrowZK
QrowZK merged commit 60d7746 into main Sep 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants