Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add resizable support to the
<PageLayout>
component (#2352)
* 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>
- Loading branch information
1 parent
6199b10
commit 0c2db83
Showing
8 changed files
with
328 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
Add resizable support to the PageLayout component. |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.