From 386e8f2ea7209121b89159dbfbca53f70e87e1fb Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Thu, 24 Jun 2021 11:19:57 -0400 Subject: [PATCH] DevTools: Fix Settings dialog scroll/size bug in Firefox (#21747) --- .../src/devtools/views/Settings/SettingsModal.css | 2 +- .../react-devtools-shared/src/devtools/views/TabBar.css | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/react-devtools-shared/src/devtools/views/Settings/SettingsModal.css b/packages/react-devtools-shared/src/devtools/views/Settings/SettingsModal.css index 7c1e6b55b4494..6566621ebbc72 100644 --- a/packages/react-devtools-shared/src/devtools/views/Settings/SettingsModal.css +++ b/packages/react-devtools-shared/src/devtools/views/Settings/SettingsModal.css @@ -22,7 +22,7 @@ box-shadow: 0 2px 4px var(--color-shadow); border-radius: 0.25rem; overflow: auto; - width: 400px; + width: 410px; max-width: 100%; } diff --git a/packages/react-devtools-shared/src/devtools/views/TabBar.css b/packages/react-devtools-shared/src/devtools/views/TabBar.css index a29770a0d0106..57abadaecf557 100644 --- a/packages/react-devtools-shared/src/devtools/views/TabBar.css +++ b/packages/react-devtools-shared/src/devtools/views/TabBar.css @@ -10,6 +10,9 @@ user-select: none; color: var(--color-text); + /* Hide radio buttons for Firefox too */ + position: relative; + /* Electron drag area */ -webkit-app-region: no-drag; } @@ -48,6 +51,9 @@ width: 0; margin: 0; opacity: 0; + + /* Hide radio buttons for Firefox too */ + position: absolute; } .IconSizeNavigation,