Skip to content

Commit

Permalink
Give "Loading more cells..." lots of vertical space so scroll restora…
Browse files Browse the repository at this point in the history
…tion works better on Firefox (#2901)
  • Loading branch information
fonsp authored Apr 19, 2024
1 parent b4066d3 commit 126f25c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/components/Notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,13 @@ export const Notebook = ({
/>`
)}
${cell_outputs_delayed && notebook.cell_order.length >= render_cell_outputs_minimum
? html`<div style="font-family: system-ui; font-style: italic; text-align: center; padding: 5rem 1rem;">Loading more cells...</div>`
? html`<div
style="font-family: system-ui; font-style: italic; text-align: center; padding: 5rem 1rem; margin-bottom: ${(notebook.cell_order.length -
render_cell_outputs_minimum) *
10}rem;"
>
Loading more cells...
</div>`
: null}
</pluto-notebook>
`
Expand Down

0 comments on commit 126f25c

Please sign in to comment.