Skip to content

Commit

Permalink
frontend tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Sep 17, 2024
1 parent 4da3a56 commit 5dd47b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion frontend/components/Notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ export const Notebook = ({
let global_definition_locations = useMemo(
() =>
Object.fromEntries(
Object.values(notebook?.cell_dependencies ?? {}).flatMap((x) => Object.keys(x.downstream_cells_map).map((variable) => [variable, x.cell_id]))
Object.values(notebook?.cell_dependencies ?? {}).flatMap((x) =>
Object.keys(x.downstream_cells_map)
.filter((variable) => !variable.includes("."))
.map((variable) => [variable, x.cell_id])
)
),
[notebook?.cell_dependencies]
)
Expand Down
3 changes: 0 additions & 3 deletions frontend/components/TreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ const useKeyboardClickable = (element_ref) => {

const prefix = ({ prefix, prefix_short }) => {
const element_ref = useRef(/** @type {HTMLElement?} */ (null))
useEffect(() => {
console.log(element_ref.current)
}, [])
useKeyboardClickable(element_ref)
return html`<pluto-tree-prefix role="button" tabindex="0" ref=${element_ref}
><span class="long">${prefix}</span><span class="short">${prefix_short}</span></pluto-tree-prefix
Expand Down
1 change: 1 addition & 0 deletions frontend/treeview.css
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ table.pluto-table tbody th:first-child {
background-color: var(--main-bg-color);
position: sticky;
left: -10px; /* padding-left of pluto-output*/
white-space: nowrap;
}

table.pluto-table .pluto-tree-more-td {
Expand Down

0 comments on commit 5dd47b1

Please sign in to comment.