-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat: FIT-1123: Add resizer between Preview and left-side Panels in Template Builder #9030
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
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for label-studio-docs-new-theme ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for heartex-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## develop #9030 +/- ##
===========================================
- Coverage 66.59% 57.73% -8.86%
===========================================
Files 829 561 -268
Lines 64851 40598 -24253
Branches 11006 10974 -32
===========================================
- Hits 43189 23441 -19748
+ Misses 21658 17153 -4505
Partials 4 4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This pull request introduces a resizable split view to the project configuration page, allowing users to adjust the width between the labeling interface editor and its preview. The split position is persisted per project, and minimum width constraints are enforced for usability. The implementation includes new React components, hooks, and associated styles.
Resizable split view for editor and preview:
ConfigResizer) between the editor and preview panels inConfig.jsx, allowing users to adjust their relative widths. The split position is managed as a percentage and is visually updated as the handle is dragged. [1] [2] [3] [4]useConfigResizerhook to manage the split state, enforce minimum width constraints, and persist the user's preference inlocalStorageper project. This ensures the layout is user-customizable and consistent across sessions. [1] [2]ConfigResizer.scss) and updated existing styles to support the resizer's appearance and proper flex behavior, ensuring a smooth and accessible resizing experience. [1] [2]