From e5232da4024b17437020d5d29f35cba74083134f Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Mon, 25 Jan 2021 06:40:20 -0800 Subject: [PATCH] make sure Dropdown.Button uses flex like Button Summary: Button fills out by default in Ant design if used in a flex container. Dropdown.Button doesn't do so. With this change Reviewed By: jknoxville Differential Revision: D26045409 fbshipit-source-id: 593b767aa7e38a98c8887b426f36fe41cb41bfd3 --- desktop/themes/typography.less | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/desktop/themes/typography.less b/desktop/themes/typography.less index 1c0d7f495..c6b770e91 100644 --- a/desktop/themes/typography.less +++ b/desktop/themes/typography.less @@ -87,6 +87,14 @@ color: @background-default; } +// grow dropdown buttons like plain button +.ant-dropdown-button { + flex-grow: 1; + & button:first-child { + flex-grow: 1; + } +} + .flipperlegacy_design { // Prevents ANT breaking global styles implicitly used by old Flipper design line-height: 1;