Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize panes by dragging borders #77

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Conversation

webofpies
Copy link
Contributor

@webofpies webofpies commented Dec 26, 2023

Ability to resize the left read pane and the right word and dict panes by dragging their borders.

Some code related to the "text width" functionality has been moved from text-options.js to the new resize.js file.

double click on the borders: for the main read pane it expands the read pane to 95% of the viewport width (but doesn't save this to the local storage). This is for temporarily expanding the pane if you do not need the dictionary for some time. Double clicking again (if the pane width is at 95%) gets it back to the previous width.
For the right pane, double click expands the dictionary pane to 95% and the rest is the same as with the read pane.

@jzohrab
Copy link
Collaborator

jzohrab commented Dec 27, 2023

Looks great! Adding a section in the manual for styling.

@jzohrab jzohrab merged commit f175bf8 into LuteOrg:develop Dec 27, 2023
9 of 10 checks passed
@webofpies webofpies deleted the resize branch January 5, 2024 08:38
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.

2 participants