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

Better split view #7

Merged
merged 8 commits into from
Aug 5, 2023
Merged

Better split view #7

merged 8 commits into from
Aug 5, 2023

Conversation

aleb2000
Copy link
Contributor

This PR also updates some web-sys related dependencies to a newer minor version (simply because split-yew is already using the newer version).

  • The split view is initially collapsed.
  • The draggable gutter is always visible, so the user can always drag it wherever it wants anyway.
  • On first run it will automatically resize to a 50/50 split.
  • The split does not use a grid layout anymore but a flex one instead (Split.js does not support grid layouts, there is a split-grid version that does but my library currently does not support that). The grid layout wasn't doing much anyway.
  • I did not add any buttons to collapse the split, but if you want it, that can be easily done by setting the "output_collapsed" state variable to true.

frontend/Cargo.toml Outdated Show resolved Hide resolved
@ranile ranile merged commit 552434c into yewstack:master Aug 5, 2023
@ranile
Copy link
Member

ranile commented Aug 5, 2023

Thanks

@ranile ranile linked an issue Aug 5, 2023 that may be closed by this pull request
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.

Better split view for preview
2 participants