-
Notifications
You must be signed in to change notification settings - Fork 75
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
fix: ResizableLayoutContainer no longer overflows #13533
fix: ResizableLayoutContainer no longer overflows #13533
Conversation
- Changed maxWidth for StudioResizableLayoutElement to use Rem instead of Pixels. - Added maxWidth of `100VW` to StudioResizableLayoutContainer - Added fullWidth to both Elements.tsx and Preview.tsx, so that when the buttons are collapsed, they take up all the space they can use.
It comes down to using Rems vs Pixels. The bug was making the Preview section resize randomly, now that's fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superb! 💯
Just some nitpicking 🙂
...ents/StudioResizableLayout/StudioResizableLayoutContainer/StudioResizableLayoutContainer.tsx
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13533 +/- ##
=======================================
Coverage 95.16% 95.17%
=======================================
Files 1462 1462
Lines 20149 20149
Branches 2439 2439
=======================================
+ Hits 19175 19176 +1
Misses 868 868
+ Partials 106 105 -1 ☔ View full report in Codecov by Sentry. |
There are some spacing issues that need attention. I thought Prettier would handle that, but it seems not. Could you take care of it? Once that's done, it's good to go! 😄 https://github.com/Altinn/altinn-studio/actions/runs/10831581581/job/30053889792?pr=13533 |
The issue arrised from commits made yesterday because of having to bypassing husky to make commits. The local issue has been resolved and won't happen in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Testet OK. |
Description
ResizableLayoutContainer
, ensuring it no longer exceeds the screen size.fullWidth
property for bothStudioButtons
used whenPreview
andElements
are collapsed. This adjustment allows the buttons to occupy the full width of their parent container, which is constrained bycollapseSize
. Previously, there were gaps between the buttons and their containers.Related Issue(s)
Verification