Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cell spacing in run, html export #1898

Merged
merged 2 commits into from
Jul 27, 2024
Merged

Conversation

akshayka
Copy link
Contributor

The vertical layout was missing spacing when code was shown.

The vertical layout was missing spacing when code was shown.
@akshayka akshayka requested a review from mscolnick July 27, 2024 02:03
Copy link

vercel bot commented Jul 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 27, 2024 5:12pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 27, 2024 5:12pm

)}
{/* Shown in read and present */}
<FloatingOutline />
<div className={showCode ? "flex flex-col gap-5" : undefined}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just pass this class to the vertical layout? Avoid a bunch of nesting

Copy link
Contributor Author

@akshayka akshayka Jul 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That didn't work because vertical layout has its own nesting. Plus I realized we don't want to put everything (TOC, action buttons) in the flex, just the cell array.

Updated to only wrap in div when needed. So now the DOM is analogous to the CellArray component, which also wraps cells in a flexed div under a VerticalLayoutWrapper.

@akshayka akshayka merged commit a91333c into main Jul 27, 2024
31 checks passed
@akshayka akshayka deleted the aka/fix-cell-spacing-run-html branch July 27, 2024 19:00
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.7.13-dev7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants