Display density controls (row height, event size, columns) - #9
Merged
Conversation
…umns) Row height varies with how many multi-day events stack; sparse rows still had a fixed 80px floor. Add a 'גודל' control in the view-settings group: a popover with 3 presets (דחוס / רגיל / מרווח) plus advanced sliders for row height, event bar height, event font, and column width. Values are pushed as CSS variables on :root and persisted to localStorage; the stylesheet keeps the current values as fallbacks (so the default look is unchanged). A comfort floor prevents extreme squeezing. Pure logic in src/lib/density.ts with tests (81 total). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Feature
A גודל control in the view-settings group lets the user tune the calendar's density:
Why
Row height grows with stacked multi-day events; sparse rows had a fixed floor that some users want smaller for a whole-year overview. Now they can compress (or enlarge) to taste.
Implementation
src/lib/density.ts(presets, bounds/clamp, CSS-var mapping, parse) + tests.var(--x, <current default>), so the default look is unchanged.DensityControlapplies the vars to:rootand persists; self-contained component in the header.Verification
npm test→ 81 passing (incl. 11 new density tests);npm run buildgreen.🤖 Generated with Claude Code