ソースを参照

Ensure nowrap for grid header (#584)

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 11 ヶ月 前
コミット
808e477eb8
1 ファイル変更4 行追加1 行削除
  1. 4 1
      client/src/components/grid/TableHead.tsx

+ 4 - 1
client/src/components/grid/TableHead.tsx

@@ -34,6 +34,7 @@ const useStyles = makeStyles(theme => ({
     fontWeight: 500,
     fontWeight: 500,
     maxHeight: 45,
     maxHeight: 45,
     overflow: 'hidden',
     overflow: 'hidden',
+    whiteSpace: 'nowrap',
   },
   },
   tableRow: {
   tableRow: {
     // borderBottom: '1px solid rgba(0, 0, 0, 0.6);',
     // borderBottom: '1px solid rgba(0, 0, 0, 0.6);',
@@ -82,7 +83,9 @@ const EnhancedTableHead: FC<TableHeadType> = props => {
         )}
         )}
 
 
         {colDefinitions.map(headCell => {
         {colDefinitions.map(headCell => {
-          const cellStyle = headCell.getStyle ? headCell.getStyle(headCell) : {};
+          const cellStyle = headCell.getStyle
+            ? headCell.getStyle(headCell)
+            : {};
 
 
           return (
           return (
             <TableCell
             <TableCell