Skip to content

Commit

Permalink
notebook selector stuck on top
Browse files Browse the repository at this point in the history
  • Loading branch information
mchami02 committed Aug 28, 2024
1 parent d751a82 commit ca9e30f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/VizContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,14 @@ const VizContent: React.FC<VizContentProps> = ({ context, flowchartWidget }) =>

return (
<div style={{ height: '100%', overflowY: 'auto' }}>
<NotebookSelector
notebookIds={jsonData.notebooks.map(notebook => notebook.notebook_id)}
notebookNames={jsonData.notebooks.map(notebook => notebook.notebook_name)}
selectedNotebooks={selectedNotebookIds}
onSelectionChange={handleNotebookSelection}
/>
<div style={{ position: 'sticky', top: 0, zIndex: 1000, background: 'white' }}>
<NotebookSelector
notebookIds={jsonData.notebooks.map(notebook => notebook.notebook_id)}
notebookNames={jsonData.notebooks.map(notebook => notebook.notebook_name)}
selectedNotebooks={selectedNotebookIds}
onSelectionChange={handleNotebookSelection}
/>
</div>
<VizComponent
data={{ notebooks: selectedNotebooks }}
onSelectNotebook={handleNotebookSelection}
Expand Down

0 comments on commit ca9e30f

Please sign in to comment.