From c0a30380dcfab30e45a9ed693d79bf960dd98fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Wed, 6 Mar 2019 05:47:25 -0800 Subject: [PATCH] fix sidebar scrollbars Summary: Only show scrollbars in sidebar when necessary. Reviewed By: jknoxville, passy Differential Revision: D14341446 fbshipit-source-id: e75f02b9de7796fc9ed8a42618ade3be015a1889 --- src/chrome/MainSidebar.js | 2 +- src/chrome/UserAccount.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chrome/MainSidebar.js b/src/chrome/MainSidebar.js index d6903b278..6ec6b3f47 100644 --- a/src/chrome/MainSidebar.js +++ b/src/chrome/MainSidebar.js @@ -103,7 +103,7 @@ const PluginName = styled(Text)(props => ({ const Plugins = styled(FlexColumn)({ flexGrow: 1, - overflow: 'scroll', + overflow: 'auto', }); const PluginDebugger = styled(FlexBox)(props => ({ diff --git a/src/chrome/UserAccount.js b/src/chrome/UserAccount.js index d3ee26150..c78294e47 100644 --- a/src/chrome/UserAccount.js +++ b/src/chrome/UserAccount.js @@ -18,6 +18,7 @@ const Container = styled(FlexRow)({ padding: '5px 10px', borderTop: `1px solid ${colors.blackAlpha10}`, fontWeight: 500, + flexShrink: 0, }); const ProfilePic = styled('img')({