File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 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 }) => {
2525 } , false ) ;
2626 } , [ ] ) ;
2727
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+
2840 const columnClass = ( { selectedColumn, columnName } : { selectedColumn : string , columnName : string } ) => {
2941 const classes = [ "column-name" ]
3042
@@ -43,7 +55,7 @@ export const TableNode: FC<NodeProps> = ({ data }) => {
4355
4456 return (
4557 < div
46- className = { `table ${ isTableHighlighted ( { schema : data . schema , tableName : data . name } ) ? 'table--highlighted' : '' } ` } >
58+ className = { tableClass ( { schema : data . schema , tableName : data . name } ) } >
4759 < div
4860 style = { isTableHighlighted ( { schema : data . schema , tableName : data . name } ) ? { } : { backgroundColor : data . schemaColor } }
4961 className = "table__name"
Original file line number Diff line number Diff line change 8181 border-top : 0 ;
8282 }
8383 }
84+
85+ & :hover {
86+ #{$root } __name {
87+ opacity : 1 ;
88+ }
89+ }
90+
91+ & --dimmed {
92+ #{$root } __name {
93+ opacity : 0.4 ;
94+ }
95+ }
8496}
You can’t perform that action at this time.
0 commit comments