From 327c010ddddc62dfb7873adfe0b36d14ed567e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20L=C3=BCscher?= Date: Mon, 27 May 2024 06:58:47 +0000 Subject: [PATCH] feat(nicegui): easy navigation to home by clicking on ublue icon --- anvil/nicegui/theme.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/anvil/nicegui/theme.py b/anvil/nicegui/theme.py index e7cd9a5..af93662 100644 --- a/anvil/nicegui/theme.py +++ b/anvil/nicegui/theme.py @@ -35,9 +35,10 @@ def frame( with ui.grid(columns=3).classes("w-full gap-0"): with ui.row(wrap=False).classes("col-span-1 justify-start"): menu() - ui.image(source=f"{project_root}/pages/assets/ublue-mini.svg").props( - "width=33px hight=auto" - ) + with ui.link(target="/"): + ui.image( + source=f"{project_root}/pages/assets/ublue-mini.svg" + ).props("width=33px hight=auto") ui.label(text="Forge").classes("text-h5") with ui.row(wrap=False).classes("col-span-1 justify-center"): ui.label(text=navigation_title).classes("text-h5")