File tree 2 files changed +25
-1
lines changed
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,18 @@ export const TableNode: FC<NodeProps> = ({ data }) => {
25
25
} , false ) ;
26
26
} , [ ] ) ;
27
27
28
+ const tableClass = ( { schema, tableName} : { schema : string , tableName : string } ) => {
29
+ const classes = [ "table" ]
30
+
31
+ if ( isTableHighlighted ( { schema, tableName } ) ) {
32
+ classes . push ( "table--highlighted" )
33
+ } else if ( tableHighlightsPresent ( ) ) {
34
+ classes . push ( "table--dimmed" )
35
+ }
36
+
37
+ return classes . join ( " " )
38
+ }
39
+
28
40
const columnClass = ( { selectedColumn, columnName } : { selectedColumn : string , columnName : string } ) => {
29
41
const classes = [ "column-name" ]
30
42
@@ -43,7 +55,7 @@ export const TableNode: FC<NodeProps> = ({ data }) => {
43
55
44
56
return (
45
57
< div
46
- className = { `table ${ isTableHighlighted ( { schema : data . schema , tableName : data . name } ) ? 'table--highlighted' : '' } ` } >
58
+ className = { tableClass ( { schema : data . schema , tableName : data . name } ) } >
47
59
< div
48
60
style = { isTableHighlighted ( { schema : data . schema , tableName : data . name } ) ? { } : { backgroundColor : data . schemaColor } }
49
61
className = "table__name"
Original file line number Diff line number Diff line change 81
81
border-top : 0 ;
82
82
}
83
83
}
84
+
85
+ & :hover {
86
+ #{$root } __name {
87
+ opacity : 1 ;
88
+ }
89
+ }
90
+
91
+ & --dimmed {
92
+ #{$root } __name {
93
+ opacity : 0.4 ;
94
+ }
95
+ }
84
96
}
You can’t perform that action at this time.
0 commit comments