Skip to content

hide add cell toolbar when show-chrome is false#9487

Merged
Light2Dark merged 2 commits into
mainfrom
sham/hide-controls-iframe
May 11, 2026
Merged

hide add cell toolbar when show-chrome is false#9487
Light2Dark merged 2 commits into
mainfrom
sham/hide-controls-iframe

Conversation

@Light2Dark

Copy link
Copy Markdown
Member

📝 Summary

Closes #9429. Hides the Add cells buttons

📋 Pre-Review Checklist

  • 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).
  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • Video or media evidence is provided for any visual changes (optional).

✅ Merge Checklist

  • I have read the contributor guidelines.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • Tests have been added for the changes made.

@vercel

vercel Bot commented May 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment May 8, 2026 11:08pm

Request Review

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 8, 2026
@Light2Dark Light2Dark added the enhancement New feature or request label May 8, 2026
@Light2Dark Light2Dark marked this pull request as ready for review May 11, 2026 16:38
Copilot AI review requested due to automatic review settings May 11, 2026 16:38
@Light2Dark Light2Dark requested a review from akshayka as a code owner May 11, 2026 16:38
@Light2Dark Light2Dark merged commit 5838cf2 into main May 11, 2026
32 of 33 checks passed
@Light2Dark Light2Dark deleted the sham/hide-controls-iframe branch May 11, 2026 16:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses embedded edit-mode notebooks where show-chrome=false hides the main editor chrome but previously still left the inline add-cell toolbar visible (Closes #9429). It extends the existing “hide controls” behavior so the add-cell buttons at the bottom of each column are also suppressed when chrome is hidden.

Changes:

  • Propagate hideControls from EditApp into CellArray.
  • Conditionally hide the per-column <AddCellButtons /> footer when hideControls is enabled.
  • Update embedding documentation to clarify that show-chrome=true enables the add-cell toolbar.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
frontend/src/core/edit-app.tsx Passes hideControls down to the cell renderer so embedded “no chrome” mode can suppress add-cell UI.
frontend/src/components/editor/renderers/cell-array.tsx Adds hideControls plumbing and hides the column footer add-cell toolbar when requested.
docs/guides/publishing/playground.md Documents that show-chrome=true includes the add-cell toolbar in editor controls.

Comment on lines 136 to 141
<CellArray
mode={viewState.mode}
userConfig={userConfig}
appConfig={appConfig}
hideControls={hideControls}
/>

To show editor controls (such as panels icons and the run button), use
the query parameter `show-chrome=true`
To show editor controls (such as panels icons, the run button, and the
@github-actions

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configurable toolbar in iframe

3 participants