Repository navigation
fix(reader): fit mail a little wider than the reader instead of cutting it off - #712
Closed
adriadam10 wants to merge 1 commit into
Closed
adriadam10 wants to merge 1 commit into
adriadam10 wants to merge 1 commit into
Conversation
…ng it off The reader widens a message's frame to its widest part, so a single 600-pixel signature table laid every line of the mail out at 600 pixels, and in a narrow reader (a window on half a screen) the end of each line was out of sight. Mail up to 1.4 times the pane's width is now zoomed down to fit it, its text no smaller than 70%. Wider mail has its body held to the pane's width, so its text wraps there and only what is wider still scrolls sideways. Both are undone before each measure. Co-Authored-By: Claude <noreply@anthropic.com>
hyprlab
added a commit
that referenced
this pull request
Nov 25, 2026
The frame widens to a message's widest part, so one 600-pixel signature table laid every line out at 600 pixels and cut each one off in a narrow reader. Mail still wider than the pane once its own CSS has laid it out at the pane's width is now zoomed down until it fits, so nothing scrolls sideways. Settings → Reading → Scale message width to fit reader, on by default, turns it off. Co-Authored-By: Adrià <57327458+adriadam10@users.noreply.github.com>
Owner
|
Excellent work, I got this merged with the addition of a toggle in Settings > Reading to switch this on/off. Default is on for all users once it ships. Will be in today's beta build |
Owner
|
Agentic reply: 1.50.0-beta.4 is in the repo now. If you've installed Hylki beta as a Flatpak, running flatpak install --user --from https://hylki.hyprlab.co/flatpak/co.hyprlab.Hylki.Beta.flatpakrefAppImage, Debian and RPM betas: See Beta channel for update details. |
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.
What
The reader widens each message's frame to the message's widest part (so wide newsletters scroll sideways instead of being clipped). A side effect: one wide fixed-width element, typically a corporate signature table with
width:600px, lays every line of the mail out at 600 px. In a narrow reader (window on half a screen) the end of every line is then out of sight, reachable only by scrolling sideways.This changes the size script so that, after measuring:
max-widthat the pane's width: the text wraps at the pane, and only what is genuinely wider (the signature table, a wide screenshot) still scrolls sideways.Both adjustments are undone before every measure, so resizing the window back up returns the mail to its natural layout. The reader zoom (
vfZoom) also resets the fit.Testing
cargo test: all pass; the four characterization goldens are re-blessed, the only diff is the embedded size script.Written with Claude Code; the commit carries a
Co-Authored-By: Claudetrailer required by my organization's settings, even thoughtools/git-hooks/commit-msgasks for none. Happy to drop it when squashing.