Skip to content

Commit a79a651

Browse files
committed
fix(dashboard): wrong padding inside viz-table
1 parent 826bbd8 commit a79a651

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

dashboard/src/plugins/viz-components/table/viz-table.styles.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,20 @@ export const useTableStyles = createStyles((theme) => ({
4040

4141
export const baseTableSX: Sx = {
4242
tableLayout: 'fixed',
43-
'th, td': {
44-
padding: '2px 10px',
45-
div: {
46-
overflow: 'hidden',
47-
textOverflow: 'ellipsis',
48-
},
49-
// for index column
50-
'&:first-of-type': {
51-
paddingLeft: 2,
52-
paddingRight: 2,
43+
'thead, tbody': {
44+
tr: {
45+
'th, td': {
46+
padding: '2px 10px',
47+
div: {
48+
overflow: 'hidden',
49+
textOverflow: 'ellipsis',
50+
},
51+
// for index column
52+
'&:first-of-type': {
53+
paddingLeft: 2,
54+
paddingRight: 2,
55+
},
56+
},
5357
},
5458
},
5559
};

0 commit comments

Comments
 (0)