Skip to content

Commit 3184efe

Browse files
author
xhlulu
committed
slightly update slice demo
Former-commit-id: e819986
1 parent 5f7e431 commit 3184efe

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

apps/dash-vtk-explorer/demos/slice-rendering/app.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def custom_card(children):
3030
return dbc.Card(
3131
html.Div(children, style={"height": "100%"}),
3232
body=True,
33-
style={"height": "70vh"},
33+
style={"height": "100%"},
3434
)
3535

3636

@@ -106,15 +106,18 @@ def custom_card(children):
106106

107107
app.layout = dbc.Container(
108108
fluid=True,
109-
style={"padding-top": "15px"},
109+
style={"height": "calc(100vh - 30px)"},
110110
children=[
111-
controls,
112-
html.Br(),
111+
html.Div(
112+
style={"height": "20%", "display": "flex", "align-items": "center"},
113+
children=[html.Br(), controls, html.Br(),],
114+
),
113115
dbc.Row(
114-
[
116+
style={"height": "80%"},
117+
children=[
115118
dbc.Col(width=6, children=custom_card(slice_view)),
116119
dbc.Col(width=6, children=custom_card(volume_view)),
117-
]
120+
],
118121
),
119122
],
120123
)

apps/dash-vtk-explorer/explorer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def prepend_callback_list(ls: list, prefix: str) -> list:
7474

7575

7676
def Header(name, app):
77-
title = html.H3(name, style={"display": "inline-flex"})
77+
title = html.H2(name, style={"display": "inline-flex"})
7878
logo = html.Img(
7979
src=app.get_asset_url("dash-logo.png"),
8080
style={

0 commit comments

Comments
 (0)