fix table header column widths deviating from rows
Summary: changelog: Improved column widths in data tables This diff fixes two issues: 1) dynamic width columns became invisible if there is too much else, and therefor it was hard to make them bigger or even notice them 2) column headers could be out of sync with the actually rendered rows, due to minor styling differences Reviewed By: cekkaewnumchai Differential Revision: D33364781 fbshipit-source-id: c3d47bb8db4af521859a5cbdf525d8ce39c71d00
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b6c884f011
commit
b77b234e98
@@ -72,7 +72,6 @@ const TableBodyColumnContainer = styled.div<{
|
||||
multiline?: boolean;
|
||||
justifyContent: 'left' | 'right' | 'center';
|
||||
}>((props) => ({
|
||||
display: 'block',
|
||||
flexShrink: props.width === undefined ? 1 : 0,
|
||||
flexGrow: props.width === undefined ? 1 : 0,
|
||||
overflow: 'hidden',
|
||||
@@ -82,6 +81,7 @@ const TableBodyColumnContainer = styled.div<{
|
||||
whiteSpace: props.multiline ? 'pre-wrap' : 'nowrap',
|
||||
wordWrap: props.multiline ? 'break-word' : 'normal',
|
||||
width: props.width,
|
||||
minWidth: 25,
|
||||
textAlign: props.justifyContent,
|
||||
justifyContent: props.justifyContent,
|
||||
'&::selection': {
|
||||
|
||||
Reference in New Issue
Block a user