mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
fix: add after element to column headers (#1000)
* fix: add after element to column headers * fix: add overflow hidden
This commit is contained in:
parent
a8b46a664f
commit
c28cdab6e8
@ -40,9 +40,19 @@ export const useStyles = makeStyles()(theme => ({
|
||||
fontWeight: theme.fontWeight.bold,
|
||||
},
|
||||
label: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
whiteSpace: 'nowrap',
|
||||
textOverflow: 'ellipsis',
|
||||
overflowX: 'hidden',
|
||||
overflowY: 'visible',
|
||||
'::after': {
|
||||
fontWeight: 'bold',
|
||||
display: 'inline-block',
|
||||
height: 0,
|
||||
content: 'attr(data-text)',
|
||||
visibility: 'hidden',
|
||||
overflow: 'hidden',
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
@ -111,6 +111,7 @@ export const CellSortable: FC<ICellSortableProps> = ({
|
||||
className={styles.label}
|
||||
ref={ref}
|
||||
tabIndex={-1}
|
||||
data-text={children}
|
||||
>
|
||||
{children}
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user