diff --git a/products/jbrowse-react-linear-genome-view/src/JBrowseLinearGenomeView/JBrowseLinearGenomeView.tsx b/products/jbrowse-react-linear-genome-view/src/JBrowseLinearGenomeView/JBrowseLinearGenomeView.tsx index c52e561bc8..ac53122c1e 100644 --- a/products/jbrowse-react-linear-genome-view/src/JBrowseLinearGenomeView/JBrowseLinearGenomeView.tsx +++ b/products/jbrowse-react-linear-genome-view/src/JBrowseLinearGenomeView/JBrowseLinearGenomeView.tsx @@ -6,7 +6,6 @@ import ModalWidget from './ModalWidget' import ViewContainer from './ViewContainer' type Session = Instance> - function JBrowseLinearGenomeView({ viewState, }: { @@ -21,7 +20,9 @@ function JBrowseLinearGenomeView({ const { ReactComponent } = viewType return ( -
+ // avoid parent styles getting into this div + // https://css-tricks.com/almanac/properties/a/all/ +
diff --git a/products/jbrowse-react-linear-genome-view/src/JBrowseLinearGenomeView/__snapshots__/JBrowseLinearGenomeView.test.tsx.snap b/products/jbrowse-react-linear-genome-view/src/JBrowseLinearGenomeView/__snapshots__/JBrowseLinearGenomeView.test.tsx.snap index e042c4e41a..61fc85b2fb 100644 --- a/products/jbrowse-react-linear-genome-view/src/JBrowseLinearGenomeView/__snapshots__/JBrowseLinearGenomeView.test.tsx.snap +++ b/products/jbrowse-react-linear-genome-view/src/JBrowseLinearGenomeView/__snapshots__/JBrowseLinearGenomeView.test.tsx.snap @@ -1,7 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` renders successfully 1`] = ` -
+
{ ) } +export const OneLinearGenomeViewWithOutsideStyling = () => { + const state = createViewState({ + assembly, + tracks, + defaultSession, + location: 'ctgA:1105..1221', + onChange: patch => { + // eslint-disable-next-line no-console + console.log('patch', patch) + }, + }) + return ( +
+

Hello world, this is centered but not affecting the internal LGV

+ + + +
+ ) +} + export const TwoLinearGenomeViews = () => { const state1 = createViewState({ assembly,