Layout fix in searchable actions

Summary: Tiny fix were horizontally aligned items were accidentally allowed to shrink by default.

Reviewed By: cekkaewnumchai

Differential Revision: D24501856

fbshipit-source-id: 30ad3987a744b14b41993ed27db9edadd420f0df
This commit is contained in:
Michel Weststrate
2020-10-23 06:44:04 -07:00
committed by Facebook GitHub Bot
parent 402ea2fc14
commit 26e040ea73

View File

@@ -53,7 +53,14 @@ const Container = styled.div<ContainerProps>(
}) => ({
display: 'flex',
flexDirection: 'column',
flex: grow && shrink ? `1 1 0` : grow ? `1 0 auto` : shrink ? `0 1 0` : 0,
flex:
grow && shrink
? `1 1 0` // allow growing, and shrinking smaller than actual size
: grow
? `1 0 auto` // allow grow, start at natural size
: shrink
? `0 1 0` // allow shrinking smaller than natural size
: `0 0 auto`, // (default) use natural size, don't grow or shrink (in parent flex direction)
minWidth: shrink ? 0 : undefined,
boxSizing: 'border-box',
width,