Skip to content

Commit a9b07ad

Browse files
committed
Add 4C documentation link with icon
Update src/fourc_webviewer/gui_utils.py Co-authored-by: Dragos Ana <[email protected]> Update src/fourc_webviewer/gui_utils.py Co-authored-by: Dragos Ana <[email protected]> Update src/fourc_webviewer/gui_utils.py Co-authored-by: Dragos Ana <[email protected]> Add docs link with button
1 parent 4dea2d1 commit a9b07ad

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

src/fourc_webviewer/gui_utils.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,37 @@ def _toolbar(server_controller):
109109
html.Img(
110110
src="https://raw.githubusercontent.com/4C-multiphysics/4C-webviewer/refs/heads/main/images/4C-logo/negative-white/4C-logo-landscape_negative.svg",
111111
alt="4C Logo",
112-
style="height: 50px; width: auto; filter: invert(1); padding-left: 20px",
112+
style="height: 50px; width: auto; filter: invert(1); padding-left: 20px; padding-right: 10px;",
113113
class_="me-2",
114114
)
115115

116+
with vuetify.VTooltip(location="top"):
117+
with html.Template(v_slot_activator="{ props }"):
118+
with vuetify.VBtn(
119+
tag="a",
120+
v_bind="{...props, target: '_blank'}",
121+
v_tooltip="4C Documentation",
122+
href="https://4c-multiphysics.github.io/4C/documentation/index.html",
123+
icon=True,
124+
rel="noopener noreferrer",
125+
):
126+
vuetify.VIcon(
127+
"mdi-book-open-blank-variant-outline",
128+
size=36,
129+
color="#666",
130+
)
131+
html.Span("4C Documentation")
132+
133+
vuetify.VSpacer()
134+
116135
vuetify.VToolbarTitle(
117136
"4C Webviewer",
118137
tag="h1",
119138
shrink=True,
120139
class_="mx-4",
121-
style="font-weight: 500;",
140+
style="font-weight: 500; padding-right: 10px;",
122141
)
123142

124-
vuetify.VSpacer()
125-
126143
vuetify.VFileInput(
127144
label="Input file",
128145
v_model=("fourc_yaml_file",),

0 commit comments

Comments
 (0)