From 712a20fa49ce17c0395a42cbc12269df67baf9dc Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Thu, 24 Jul 2025 14:14:27 -0400 Subject: [PATCH 1/3] Remove unintended gaps on small screens. 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. --- src/components/app/Details.css | 1 + src/components/app/ProfileName.css | 2 ++ src/components/app/ProfileViewer.css | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/components/app/Details.css b/src/components/app/Details.css index d7f8bb4ef2..e62d2ddd6b 100644 --- a/src/components/app/Details.css +++ b/src/components/app/Details.css @@ -1,5 +1,6 @@ .Details { display: flex; + overflow: clip; flex: auto; flex-direction: column; } diff --git a/src/components/app/ProfileName.css b/src/components/app/ProfileName.css index 4959794d6e..f229366b22 100644 --- a/src/components/app/ProfileName.css +++ b/src/components/app/ProfileName.css @@ -16,6 +16,7 @@ .profileNameButton { overflow: hidden; + min-width: 80px; padding: 0 9px; font-weight: 700; margin-inline-end: 5px; @@ -24,6 +25,7 @@ } .profileNameButton::before { + flex-shrink: 0; background-image: url(firefox-profiler-res/img/svg/edit-name-profiler.svg); } diff --git a/src/components/app/ProfileViewer.css b/src/components/app/ProfileViewer.css index e59a7ccdca..ec50405f7c 100644 --- a/src/components/app/ProfileViewer.css +++ b/src/components/app/ProfileViewer.css @@ -113,6 +113,8 @@ border-bottom: 1px solid var(--grey-30); margin: 0; background: var(--grey-10); + overflow-x: auto; + scrollbar-width: none; } .profileViewerSpacer { From 2fea726a170c661bd562e0803ea648f0077a482f Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Thu, 24 Jul 2025 14:31:25 -0400 Subject: [PATCH 2/3] Keep the sidebar toggle button visible regardless of the selected tab. Small fix for the following issue: 1. Open the profiler UI on a small screen. 2. Select the call tree tab (which has a sidebar toggle button), and close the sidebar if its open. 3. Scroll the tab bar to the right so that you can see the Network tab. 4. Select the Marker Chart tab. Before this fix, step 4 would remove the sidebar button and make the tapped tab change positions, causing an odd visual jump. --- src/components/app/Details.js | 52 +++++++++++++++++------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/components/app/Details.js b/src/components/app/Details.js index 56c5c77b68..25859bf48b 100644 --- a/src/components/app/Details.js +++ b/src/components/app/Details.js @@ -86,32 +86,32 @@ class ProfileViewerImpl extends PureComponent { visibleTabs={visibleTabs} onSelectTab={this._onSelectTab} /> - {hasSidebar ? ( - -