Skip to content

Commit

Permalink
done otherwise but rich text editing is still enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kyostiebi committed Aug 24, 2023
1 parent 445d29f commit c5798e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export const LinearApolloDisplay = observer(function LinearApolloDisplay(
const lgv = getContainingView(model) as unknown as LinearGenomeViewModel

useEffect(() => {
setTheme(theme), [theme, setTheme]})
setTheme(theme), [theme, setTheme]
})
const [contextCoord, setContextCoord] = useState<Coord>()
const [contextMenuItems, setContextMenuItems] = useState<MenuItem[]>([])
const message = regionCannotBeRendered()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ function DataGrid({ model }: { model: LinearApolloDisplay }) {
assembly,
})
}
console.log(`CHANGE: ${JSON.stringify(change)}`)
if (change) {
changeManager?.submit(change)
}
Expand Down
19 changes: 9 additions & 10 deletions packages/jbrowse-plugin-apollo/src/makeDisplayComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const useStyles = makeStyles()((theme) => ({
},
}))


function scrollSelectedFeatureIntoView(
model: LinearApolloDisplayI,
scrollContainerRef: React.RefObject<HTMLDivElement>,
Expand Down Expand Up @@ -148,7 +147,7 @@ export const DisplayComponent = observer(function DisplayComponent({
model: LinearApolloDisplayI
}) {
const { classes } = useStyles()

const { height: overallHeight, selectedFeature } = model
const detailsHeight = model.tabularEditor.isShown ? model.detailsHeight : 0
const featureAreaHeight = model.isShown
Expand All @@ -168,8 +167,8 @@ export const DisplayComponent = observer(function DisplayComponent({
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
background: 'turquoise'
};
background: 'turquoise',
}
return (
<div style={{ height: overallHeight }}>
<AccordionControl
Expand All @@ -185,12 +184,12 @@ export const DisplayComponent = observer(function DisplayComponent({
<LinearApolloDisplay model={model} {...other} />
</div>
<div style={headerStyle}>
<AccordionControl
title="Table"
open={model.tabularEditor.isShown}
onClick={model.tabularEditor.togglePane}
onResize={onDetailsResize}
/>
<AccordionControl
title="Table"
open={model.tabularEditor.isShown}
onClick={model.tabularEditor.togglePane}
onResize={onDetailsResize}
/>
</div>
<div className={classes.details} style={{ height: detailsHeight }}>
<TabularEditorPane model={model} />
Expand Down

0 comments on commit c5798e9

Please sign in to comment.