-
Notifications
You must be signed in to change notification settings - Fork 616
Resizable pane refactor #2481
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
Resizable pane refactor #2481
Conversation
|
size-limit report 📦
|
* add resizable support to the PageLayout component * Add changeset file * update snapshot * take client left position into account when pane is not left aligned * fix resize behavior when pane is not at start position * fix resize when there are column gaps * use story debug values * decouple the resize handle from the vertical divider * update snap file * update snap file * rename canResizePane to resizable * update snap files * update resizable PageLayout story * rename paneWidthStorageKey to widthStorageKey * refactor(PageLayout): set pane with in CSS Custom Property * docs: add documentation for resizable nad widthStorageKey * Resizable pane refactor (#2481) * Update stories * Refactor resizable pane implementation * Clamp pane width resizing * Delay drag hover effect * Reset pane width on double click * Handle styles while dragging * Add resizable example to SplitPageLayout docs * Remove comment * Add comment about touch events * Update docs * Update resizable pane story * Update snapshots * Wrap localStorage in try/catch * Store pane width in px * Update snapshot * Update pagelayout snapshots Co-authored-by: Josh Black <josh@josh.black> Co-authored-by: Josh Black <joshblack@github.com> Co-authored-by: Cole Bemis <colebemis@github.com>
CleanShot.2022-10-25.at.16.18.32.mp4
TODO
Support touch events(out of scope)