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: show hidden cells when markdown has no output #3320

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

Light2Dark
Copy link
Contributor

@Light2Dark Light2Dark commented Dec 31, 2024

📝 Summary

Fixes #3317 . Should display hidden cells similar to pre-borderless-markdown era. Code may be a bit rough.
Screenshot 2025-01-01 at 2 05 14 AM

🔍 Description of Changes

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

📜 Reviewers

@akshayka OR @mscolnick

Copy link

vercel bot commented Dec 31, 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 Dec 31, 2024 6:06pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 31, 2024 6:06pm

@@ -359,6 +361,17 @@ const CellEditorInternal = ({
};
}, [editorViewRef]);

// Completely hide the editor & icons if it's markdown and hidden. If there is output, we show.
const showHideButton =
Copy link
Contributor Author

Choose a reason for hiding this comment

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

wonder if these should be memoized..

Copy link
Contributor

Choose a reason for hiding this comment

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

These are just boolean operations, should be super cheap.

Copy link
Contributor

@akshayka akshayka left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

@akshayka akshayka merged commit 3bf9807 into marimo-team:main Dec 31, 2024
19 checks passed
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.

Hidden markdown without outputs should be visible
2 participants