One side panel at a time, and a narrower one for the dictionary #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/one-side-panel-at-a-time"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two fixes to the left-hand side of the reader, both reported from use.
1. Both panels could be open at once
Tapping a word opened the dictionary; opening the reading settings then put a second panel beside it — or, where there was no longer room for two, left the dictionary as a sheet in the middle of the page while the settings sat on the left. Either way the reader is asked to look in two places for one answer.
The settings now replace the dictionary rather than stacking with it:
Closing the settings leaves the poem, which is where the reader was.
This reuses
LocalSidePanelOpenfromaab8b2erather than introducing a second notion of "a panel is open".2. The dictionary was as wide as the settings
Both were 360dp. They do not deserve the same room: the settings fold the columns away and take what that frees, while the dictionary is read against the line it came from — so the verse should keep the width.
The dictionary panel is now 216dp, a little over half. A definition is short; a hemistich is not. The settings keep 360dp, which costs the poem nothing.
Note
This supersedes the settings half of PR #3. That PR made the settings fall back to a bottom sheet when the browser could not keep 600dp beside the panel; folding the columns away is the better answer and already landed on main. PR #3's dictionary half is still needed and I'll rebase it on top of this.
Builds clean, 63 tests pass.
Pull request closed