Skip to content

Commit 35c066e

Browse files
authored
Remove unintended gaps on small screens. (#5521)
On small screens, the top bar was overflowing to the right, making the entire document scrollable, which lead to unintended dark blue areas appearing. As a quick fix, make the bar itself scrollable. Also put a minimum size on the profile name button and make sure its edit icon isn't squished. And prevent scrolling the contents of .Details, for example from a single overflowing pixel.
2 parents e19ac2e + 8159da9 commit 35c066e

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/components/app/Details.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.Details {
22
display: flex;
3+
overflow: clip;
34
flex: auto;
45
flex-direction: column;
56
}

src/components/app/ProfileName.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
.profileNameButton {
1818
overflow: hidden;
19+
min-width: 80px;
1920
padding: 0 9px;
2021
font-weight: 700;
2122
margin-inline-end: 5px;
@@ -24,6 +25,7 @@
2425
}
2526

2627
.profileNameButton::before {
28+
flex-shrink: 0;
2729
background-image: url(firefox-profiler-res/img/svg/edit-name-profiler.svg);
2830
}
2931

src/components/app/ProfileViewer.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@
113113
border-bottom: 1px solid var(--grey-30);
114114
margin: 0;
115115
background: var(--grey-10);
116+
overflow-x: auto;
117+
scrollbar-width: none;
116118
}
117119

118120
.profileViewerSpacer {

0 commit comments

Comments
 (0)