Skip to content

fix(html): handle lineHeight layout recalculation#1530

Open
someonegg wants to merge 1 commit intotsl0922:mainfrom
someonegg:chore/pr-lineheight-recalc
Open

fix(html): handle lineHeight layout recalculation#1530
someonegg wants to merge 1 commit intotsl0922:mainfrom
someonegg:chore/pr-lineheight-recalc

Conversation

@someonegg
Copy link
Copy Markdown

Summary

Fix terminal layout recalculation when lineHeight changes in html frontend.

Changes

  • Recalculate layout metrics after lineHeight updates
  • Prevent stale sizing behavior in xterm container

Verification

  • Build and run html frontend
  • Confirm terminal layout updates correctly after lineHeight change

Filip-Kin pushed a commit to Filip-Kin/ttyd that referenced this pull request Apr 23, 2026
- Fix viewport with visualViewport API (from PR tsl0922#1531)
- Sync page background color with terminal theme (from PR tsl0922#1531)
- Fix lineHeight/letterSpacing layout recalculation (from PR tsl0922#1530)
- Add light/dark theme toggle with localStorage persistence
- Auto-detect mobile and use larger font size (16px vs 13px)
- Prevent browser pinch-zoom via viewport meta tag
- Hide scrollbars on touch devices
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.

1 participant