Skip to content

fix(potd): remove letterbox strips around plot of the day image#5943

Merged
MarkusNeusinger merged 1 commit into
mainfrom
claude/fix-plot-light-strips-Ex9Rb
May 7, 2026
Merged

fix(potd): remove letterbox strips around plot of the day image#5943
MarkusNeusinger merged 1 commit into
mainfrom
claude/fix-plot-light-strips-Ex9Rb

Conversation

@MarkusNeusinger
Copy link
Copy Markdown
Owner

Summary

  • The Plot of the Day frame had a 16:10 aspect ratio with bgcolor: var(--bg-elevated) and a hover swap to var(--bg-page). Since the image uses object-fit: contain, non-16:10 plots were letterboxed, and the elevated background showed as light strips above and below the plot — strips that changed colour on hover and read as unrelated to the actual plot.
  • Match the frame background to the surrounding card (var(--bg-surface)) and drop the hover colour change. The dashed top/bottom rules remain as the visual separators.

Test plan

  • yarn test PlotOfTheDayTerminal --run passes
  • yarn type-check passes
  • Visual check on landing page: no visible strips above/below the plot image, no colour flip on hover, dashed rules still present

https://claude.ai/code/session_01YGdKQ58HEtiRKGhaSN1HgC


Generated by Claude Code

The 16:10 plot frame in PlotOfTheDayTerminal used `--bg-elevated` as
its background, with a hover swap to `--bg-page`. Because the image
inside is `object-fit: contain`, non-16:10 plots were letterboxed and
those strips above and below the plot picked up the elevated colour —
and changed colour on hover, which read as unrelated to the plot.

Match the frame background to the surrounding card (`--bg-surface`) and
drop the hover colour change. The dashed top/bottom rules remain as the
visual separators.
Copilot AI review requested due to automatic review settings May 7, 2026 16:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the Plot of the Day “terminal” image frame styling to avoid visible letterboxing strips by aligning the frame background with the surrounding card surface and removing the hover background-color swap.

Changes:

  • Change the plot frame background from var(--bg-elevated) to var(--bg-surface).
  • Remove the hover background-color change (and its transition) so letterboxed areas don’t “flip” color on hover.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@MarkusNeusinger MarkusNeusinger merged commit 1ca7703 into main May 7, 2026
13 checks passed
@MarkusNeusinger MarkusNeusinger deleted the claude/fix-plot-light-strips-Ex9Rb branch May 7, 2026 19:49
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.

3 participants