Skip to content

Commit

Permalink
docs: better align subcard
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jul 29, 2023
1 parent a583549 commit c1541a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion solara/website/pages/apps/multipage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@solara.component
def SharedComponent():
with solara.Card("Shown on each page", style={"max-width": "500px"}):
with solara.Card("Shown on each page", style={"max-width": "500px"}, margin=0, classes=["my-2"]):
solara.Markdown(
f"""
This component will be used on each page.
Expand Down
2 changes: 1 addition & 1 deletion solara/website/pages/apps/multipage/page1.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@solara.component
def Sub():
with solara.Card("Sub component"):
with solara.Card("Sub component", margin=0, classes=["my-2"]):
solara.Markdown("This sub component is the best")
with solara.Sidebar():
with solara.Card("Sidebar of sub component", margin=0, elevation=0):
Expand Down
2 changes: 1 addition & 1 deletion solara/website/pages/apps/multipage/page2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def Page():
solara.Button(label="View source", icon_name="mdi-github-circle", attributes={"href": github_url, "target": "_blank"}, text=True, outlined=True)
SharedComponent()

with solara.Card("Shown only on page2", style={"max-width": "500px"}):
with solara.Card("Shown only on page2", style={"max-width": "500px"}, margin=0, classes=["my-2"]):
solara.Markdown(
f"""
The lifetime of `component_state` if bound to this page. If you navigate away from it,
Expand Down

0 comments on commit c1541a0

Please sign in to comment.