Skip to content

Commit

Permalink
fix: prevent several text lines by using nowrap instead of pre (#1233)
Browse files Browse the repository at this point in the history
* refactor: compensate for checkboxes in item width

* fix: prevent >1 lines

* fix: rm comment

* fix: push nowrap change in valuefield

* refactor: rely on default wrap
  • Loading branch information
johanlahti committed Apr 24, 2023
1 parent 4df9595 commit 5643362
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ const RowColRoot = styled('div', {
userSelect: 'none',
paddingRight: '1px',
...ellipsis,
whiteSpace: 'pre', // to keep white-space on highlight
fontSize: theme.listBox?.content?.fontSize,
fontFamily: theme.listBox?.content?.fontFamily,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function ValueField({ label, color, dense, showGray = true, checkboxes, cell, va
align={valueTextAlign}
dir="auto"
>
<span style={{ whiteSpace: 'pre' }}>{label}</span>
<span>{label}</span>
</Typography>
);
}
Expand Down

0 comments on commit 5643362

Please sign in to comment.