Skip to content

feat(ui): keyboard shortcuts to adjust font size#42

Merged
dave6892 merged 1 commit into
mainfrom
feat/font-size-keyboard-shortcuts
Mar 29, 2026
Merged

feat(ui): keyboard shortcuts to adjust font size#42
dave6892 merged 1 commit into
mainfrom
feat/font-size-keyboard-shortcuts

Conversation

@dave6892

@dave6892 dave6892 commented Mar 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds Cmd/Ctrl + / Cmd/Ctrl - to increase/decrease base font size, and Cmd/Ctrl 0 to reset
  • Font size range: 12–22px in 2px steps, default 16px (persisted to SQLite settings)
  • Applies via html { font-size } so all Tailwind rem-based text scales uniformly
  • Adds overflow-wrap: break-word and min-width: 0 globally to prevent text overflow at larger sizes

Test plan

  • Cmd + / Cmd - increases and decreases text size across all views
  • Cmd 0 resets to 16px
  • Font size persists after app restart
  • No text overflow in sidebar, entry feed, goals, or AI panel at max size (22px)
  • Min (12px) and max (22px) clamps work — shortcuts stop changing size at the limits

🤖 Generated with Claude Code

Adds Cmd/Ctrl +/-/0 to increase, decrease, and reset the base font
size (range 12–22px, step 2px). Font size is persisted to SQLite
settings and applied via the html font-size so all rem-based Tailwind
text scales uniformly. Also adds overflow-wrap and min-width: 0 to
prevent text overflow at larger sizes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dave6892 dave6892 self-assigned this Mar 29, 2026
@dave6892 dave6892 added the enhancement New feature or request label Mar 29, 2026
@dave6892 dave6892 merged commit 65c7fa3 into main Mar 29, 2026
2 checks passed
@dave6892 dave6892 deleted the feat/font-size-keyboard-shortcuts branch March 29, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant