Skip to content

Commit ed5943f

Browse files
committed
Update view3d_card_layout.py
1 parent ee066ce commit ed5943f

File tree

1 file changed

+39
-36
lines changed

1 file changed

+39
-36
lines changed

layouts/view3d_card_layout.py

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -408,45 +408,48 @@ def get_3d_play_view_layout():
408408
width=4,
409409
),
410410
dbc.Col(
411-
dbc.Spinner(
412-
dbc.DropdownMenu(
413-
[
414-
dbc.DropdownMenuItem(
415-
"Export all frames as an HTML video",
416-
id="export-scatter3d",
417-
n_clicks=0,
418-
),
419-
dbc.DropdownMenuItem(
420-
"Export current plot (html)",
421-
id="export-scatter3d-html",
422-
n_clicks=0,
423-
),
424-
dbc.DropdownMenuItem(
425-
"Export current plot (png)",
426-
id="export-scatter3d-png",
427-
n_clicks=0,
428-
),
429-
dbc.DropdownMenuItem(
430-
"Filtered Data (Current Frame)",
431-
id="export-data-current",
432-
n_clicks=0,
433-
),
434-
dbc.DropdownMenuItem(
435-
"Filtered Data (All Frames)",
436-
id="export-data-all",
437-
n_clicks=0,
438-
),
439-
],
440-
label=html.I(className="bi bi-box-arrow-up"),
441-
id="export-dropdown",
442-
# right=True,
443-
style={"float": "right"},
444-
),
411+
dcc.Loading(
412+
children=[
413+
dbc.DropdownMenu(
414+
[
415+
dbc.DropdownMenuItem(
416+
"Export all frames as an HTML video",
417+
id="export-scatter3d",
418+
n_clicks=0,
419+
),
420+
dbc.DropdownMenuItem(
421+
"Export current plot (html)",
422+
id="export-scatter3d-html",
423+
n_clicks=0,
424+
),
425+
dbc.DropdownMenuItem(
426+
"Export current plot (png)",
427+
id="export-scatter3d-png",
428+
n_clicks=0,
429+
),
430+
dbc.DropdownMenuItem(
431+
"Filtered Data (Current Frame)",
432+
id="export-data-current",
433+
n_clicks=0,
434+
),
435+
dbc.DropdownMenuItem(
436+
"Filtered Data (All Frames)",
437+
id="export-data-all",
438+
n_clicks=0,
439+
),
440+
],
441+
label=html.I(className="bi bi-box-arrow-up"),
442+
id="export-dropdown",
443+
# right=True,
444+
style={"float": "right"},
445+
)
446+
],
445447
id="export-spinner",
446-
size="sm",
447448
display="hide",
449+
delay_hide=1000,
448450
),
449-
width=4,
451+
className="ms-auto",
452+
width="auto",
450453
),
451454
dbc.Tooltip(
452455
"Previous frame",

0 commit comments

Comments
 (0)