-
Notifications
You must be signed in to change notification settings - Fork 145
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
docs update code markdown_editor #893
base: master
Are you sure you want to change the base?
docs update code markdown_editor #893
Conversation
solara/website/pages/documentation/components/output/markdown_editor.py
Outdated
Show resolved
Hide resolved
cded5b2
to
32af76f
Compare
@@ -36,12 +35,12 @@ def Page(): | |||
""".strip() | |||
|
|||
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: |
There was a problem hiding this comment.
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.
with solara.Row(grow=True) as main: | |
with solara.Row() as main: |
@@ -36,12 +35,12 @@ def Page(): | |||
""".strip() | |||
|
|||
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: |
There was a problem hiding this comment.
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.
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) |
There was a problem hiding this comment.
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.
No description provided.