Skip to content

Commit 4ce5c82

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

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

src/fourc_webviewer/gui_utils.py

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,29 @@ 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(
133+
"mdi-book-open-blank-variant-outline",
134+
size=36,
135+
color="#555",
136+
style="padding-left: 10px;",
137+
)
138+
html.Span("4C Dokumentation")
123139

124140
vuetify.VSpacer()
125141

0 commit comments

Comments
 (0)