Skip to content

Commit 6bd5fa0

Browse files
committed
Add 4C documentation link with icon
1 parent 4dea2d1 commit 6bd5fa0

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

src/fourc_webviewer/gui_utils.py

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,26 @@ def _toolbar(server_controller):
113113
class_="me-2",
114114
)
115115

116-
vuetify.VToolbarTitle(
117-
"4C Webviewer",
118-
tag="h1",
119-
shrink=True,
120-
class_="mx-4",
121-
style="font-weight: 500;",
122-
)
116+
with html.Div(style="padding-left: 20px;"):
117+
vuetify.VToolbarTitle(
118+
"4C Webviewer",
119+
tag="h1",
120+
shrink=True,
121+
class_="mx-4",
122+
style="font-weight: 500;",
123+
)
124+
with vuetify.VTooltip(location="top"):
125+
with html.Template(v_slot_activator="{ props }"):
126+
with html.A(
127+
v_bind="props",
128+
href="https://4c-multiphysics.github.io/4C/documentation/index.html",
129+
target="_blank", # öffnet im neuen Tab
130+
style="text-decoration: none; color: inherit; cursor: help;" # Icon soll normal aussehen
131+
):
132+
vuetify.VIcon("mdi-book-open-blank-variant-outline", size=36, color="#555", style="padding-left: 10px;")
133+
html.Span("4C Dokumentation")
134+
135+
123136

124137
vuetify.VSpacer()
125138

0 commit comments

Comments
 (0)