Repository navigation
feat: Windows hover card 80% of the screen wide - #441
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the Windows hover card 80% of the screen wide, replacing the half-screen card from #433.
What changes
Painter.CardWidth= round(0.8 x work-area width, away from zero). The 600 DIP minimum (CardMinW) and the 200 DIP floor are gone; only the clamp to the work area less its margins stays (it never triggers at 80%). Height is still content-driven under the 90% cap.ZOrder.CardXalready clamps the card's left edge into the work area; a new check covers an 80% card under a pill at either edge.Painter.Textrecords every string cut short by its box. New checks assert that no line in thetopandhotfixtures is drawn with an ellipsis at both work areas, plus a positive control (a 512 DIP card must report cuts, so the check can see one).Measured (scale 1; the bitmap adds a 14 DIP shadow margin on each side)
On the laptop the wider left column also lets the 24-hour chart keep its big 132 DIP frame (was 90 DIP). Every list still shows 5 lines; the Dell layout is unchanged apart from the width.
Platforms
Windows only. AGENTS.md says a change "usually" needs its 2 counterparts, but DESIGN.md says "GNOME and macOS keep their own card sizes" and #433 changed only the Windows size, so the GNOME and macOS cards are untouched.
Checks
sh tools/verify.sh privacy windows-core: PASS privacy; 208 passed, 0 failed (was 200).Fixes #440