Skip to content

Windows hover card: fixed 80% x 80% of the monitor - #443

Merged
ataturhan21 merged 2 commits into
mainfrom
feat/442-card-80x80
Nov 30, 2026
Merged

ataturhan21 merged 2 commits into
mainfrom
feat/442-card-80x80

Conversation

@ataturhan21

@ataturhan21 ataturhan21 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

What changes

  • Render.cs: the card is a fixed CardWidth(monitorW, workW) x CardHeight(monitorH, workH) (80% of the monitor, kept inside the work area less its margins); CardLayout gets ContentH, and H is always MaxH.
  • The fit steps run as before, then the per-core strip and the drives and adapters come back when the lists were what did not fit, and the chart's frame grows into its column's spare height (under the meters on the left, or under both columns).
  • The snooze line and footer are pinned to the card's bottom; content over the card's height after the last fit step is clipped at the footer.
  • App.cs passes the pill's monitor size (DIP) with the work area.
  • Tests: exact 1229 x 768 and 2048 x 1152 for short and long content, the chart filling the spare height, the clip on a too-short card, and the snooze and chart checks on a fixed-height card.
  • DESIGN.md, README.md and CHANGELOG updated.

Size, visible card (DIP), before -> after

Screen Before After
14" laptop, 1536 x 960 (work area 872) 1229 x 688-783 1229 x 768
27" screen, 2560 x 1440 (work area 1352) 2048 x 914-1172 2048 x 1152

Laptop lists, measured at 1536 x 960 / 872 on main and on this branch: the busiest fake content (6 lists, "top" and "hot") shows 4 lines before and after (5 need a 797 DIP card), now with the per-core strip, drives and adapters kept (main dropped them); lighter content ("normal") shows 5 before and after. The 27" screen shows 5 lines and everything.

Checks

  • sh tools/verify.sh windows-core: 218 passed, 0 failed
  • sh tools/verify.sh privacy: clean

Fixes #442

@ataturhan21
ataturhan21 merged commit 133856f into main Nov 30, 2026
5 checks passed
@ataturhan21
ataturhan21 deleted the feat/442-card-80x80 branch November 30, 2026 15:18
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.

Windows hover card: fixed 80% x 80% of the monitor

1 participant