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:
committed by
Facebook GitHub Bot
parent
402ea2fc14
commit
26e040ea73
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user