File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
jbrowse/src/client/JBrowse/VariantSearch Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import VariantTableWidget from './components/VariantTableWidget';
1212import { fetchSession } from '../utils' ;
1313import { ErrorBoundary } from './components/ErrorBoundary' ;
1414import LoadingIndicator from './components/LoadingIndicator' ;
15+ import deepmerge from '@mui/utils/deepmerge' ;
1516
1617const nativePlugins = [ ExtendedVariantPlugin , LogSession ]
1718
@@ -21,6 +22,18 @@ function VariantTable() {
2122 const locString = queryParam . get ( 'location' ) || queryParam . get ( 'loc' )
2223 const refTheme = createTheme ( )
2324
25+ const themeAdditions = {
26+ components : {
27+ MuiTooltip : {
28+ styleOverrides : {
29+ tooltip : {
30+ fontSize : '0.8rem' ,
31+ } ,
32+ } ,
33+ } ,
34+ } ,
35+ } ;
36+
2437 if ( ! sessionId ) {
2538 return ( < p > No session Id provided.</ p > )
2639 }
@@ -66,7 +79,7 @@ function VariantTable() {
6679
6780 setState ( state )
6881 // @ts -ignore
69- setTheme ( createJBrowseTheme ( readConfObject ( state . config . configuration , 'theme' ) ) )
82+ setTheme ( createTheme ( deepmerge ( createJBrowseTheme ( readConfObject ( state . config . configuration , 'theme' ) ) , themeAdditions ) ) )
7083 }
7184
7285 // NOTE: pass trackId for activeTracks, to ensure view.tracks contains it
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import {
1010 GridToolbarDensitySelector ,
1111 GridToolbarExport
1212} from '@mui/x-data-grid' ;
13- import ScopedCssBaseline from '@mui/material/ScopedCssBaseline' ;
1413import SearchIcon from '@mui/icons-material/Search' ;
1514import React , { useEffect , useState } from 'react' ;
1615import { getConf } from '@jbrowse/core/configuration' ;
@@ -406,7 +405,7 @@ const VariantTableWidget = observer(props => {
406405 const renderHeaderCell = ( params ) => {
407406 return (
408407 < Tooltip title = { params . colDef . description } >
409- < div > { params . colDef . headerName } </ div >
408+ < div style = { { fontSize : 16 } } > { params . colDef . headerName } </ div >
410409 </ Tooltip >
411410 ) ;
412411 } ;
You can’t perform that action at this time.
0 commit comments