Skip to content

docs update code markdown_editor#893

Open
lizzy985 wants to merge 2 commits intowidgetti:masterfrom
lizzy985:docs_update_code_markdown_editor
Open

docs update code markdown_editor#893
lizzy985 wants to merge 2 commits intowidgetti:masterfrom
lizzy985:docs_update_code_markdown_editor

Conversation

@lizzy985
Copy link
Copy Markdown
Contributor

@lizzy985 lizzy985 commented Dec 2, 2024

No description provided.

Comment thread solara/website/pages/documentation/components/output/markdown_editor.py Outdated
@maartenbreddels maartenbreddels force-pushed the master branch 2 times, most recently from cded5b2 to 32af76f Compare December 20, 2024 12:52
markdown_text, set_markdown_text = solara.use_state(markdown_initial)
with solara.HBox(grow=True) as main:
with solara.VBox():
with solara.Row(grow=True) as main:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Row doesn't accept grow as an argument.

Suggested change
with solara.Row(grow=True) as main:
with solara.Row() as main:

markdown_text, set_markdown_text = solara.use_state(markdown_initial)
with solara.HBox(grow=True) as main:
with solara.VBox():
with solara.Row(grow=True) as main:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also, I missed this last time, but the return main pattern can also be removed here.

Suggested change
with solara.Row(grow=True) as main:
with solara.Row(grow=True):

@@ -36,12 +35,12 @@ def Page():
""".strip()

markdown_text, set_markdown_text = solara.use_state(markdown_initial)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

And I also now noticed that the use_state here can be replaced with use_reactive, and .value and .set can be used throughout.

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