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,
|
fontWeight: theme.fontWeight.bold,
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
whiteSpace: 'nowrap',
|
whiteSpace: 'nowrap',
|
||||||
textOverflow: 'ellipsis',
|
textOverflow: 'ellipsis',
|
||||||
overflowX: 'hidden',
|
overflowX: 'hidden',
|
||||||
overflowY: 'visible',
|
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}
|
className={styles.label}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
|
data-text={children}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user