-
Dear all, I'm playing with wave :-D I'm using I tried substituting the image path with an async def init(q: Q) -> None:
sidebar_size = "150px"
q.page["meta"] = ui.meta_card(
...
)
q.page["sidebar"] = ui.nav_card(
box="sidebar",
color="primary",
title="My sidebar",
subtitle="Let's play a bit",
value=f'#{q.args["#"]}' if q.args["#"] else "#page1",
image=ui.Image(
title="Wave logo",
path="https://docs.h2o.ai/assets/images/wave_favicon.png",
width=sidebar_size,
),
...,
)
... But an exception is raised.
Shouldn't the image be resize to the sidebar width dimension by default? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @zarch! TLDR: You can adjust sidebar width at this line. Long story: Wave gives you control over this via:
|
Beta Was this translation helpful? Give feedback.
Hey @zarch!
TLDR: You can adjust sidebar width at this line.
Long story:
Wave gives you control over this via:
250px
, however, if "zone"size
is not specified, Wave defaults to the content width. Read more here.