Skip to content

Commit 91d3e04

Browse files
authored
fix(ui): app header overflow on mobile (#14704)
### What? If the step nav's content is too long, then it will overflow the screen on mobile devices. Instead, this portion of the header should grow and shrink as needed, rather than being the full width of the header. ### Why? I believe this issue was introduced with a change to the menu button. ### How? - remove `width: 100%` as it is inaccurate to the desired size - add `min-width: 0` to allow it to shrink - change `flex-grow: 1` to `flex: 1` to make it take up the available space Before: <img width="374" height="41" alt="{D5255587-F9A4-494B-B1CE-DE350C550E6F}" src="https://github.com/user-attachments/assets/5e2f3a4b-08c8-499b-8211-bed83d44e808" /> After: <img width="374" height="37" alt="{77C3D92D-DC0F-431B-8001-11B21754290C}" src="https://github.com/user-attachments/assets/24fc034b-051b-4888-898e-83a98949d1fc" />
1 parent 3f3f5db commit 91d3e04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ui/src/elements/AppHeader/index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
&__controls-wrapper {
9292
display: flex;
9393
align-items: center;
94-
flex-grow: 1;
95-
width: 100%;
94+
flex: 1;
95+
min-width: 0;
9696
}
9797

9898
&__step-nav-wrapper {

0 commit comments

Comments
 (0)