From d310027d888677616238514ebf983655b2ad21f3 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Mon, 7 Oct 2019 07:42:22 -0700 Subject: [PATCH] Fix toggle switch bug when Flipper's width is small Summary: Bug: {F214979227} Reviewed By: passy Differential Revision: D17763781 fbshipit-source-id: 21890caee796ac0df6f39e618a762c44955dd647 --- src/ui/components/ToggleSwitch.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/components/ToggleSwitch.tsx b/src/ui/components/ToggleSwitch.tsx index d7d1506c4..5dcab6c9f 100644 --- a/src/ui/components/ToggleSwitch.tsx +++ b/src/ui/components/ToggleSwitch.tsx @@ -19,6 +19,7 @@ export const StyledButton = styled('div')((props: {toggled: boolean}) => ({ borderRadius: '100px', position: 'relative', marginLeft: '15px', + flexShrink: 0, '&::after': { content: '""', position: 'absolute',