commit f5f2726ec3b615ca2fbe9d4c6194f6f78e6181f5
parent 3d9df83809175c6962ca2366e266e47e08e8d4ae
Author: Andy Khramtsov <>
Date: Sat, 30 May 2026 03:37:11 +0300
feat: add spinner
Diffstat:
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/src/deps/pages/home.py b/src/deps/pages/home.py
@@ -94,7 +94,7 @@ def layout():
],
multiple=True,
),
- html.Div("Cargo toml:"),
+ html.Div("Cargo.toml:"),
dcc.Textarea(
id=ids.cargo_toml_textarea,
placeholder="Cargo.toml contents",
@@ -105,7 +105,7 @@ def layout():
id=ids.cargo_toml_clear,
children="Clear Cargo.toml",
),
- html.Div("Cargo lock:"),
+ html.Div("Cargo.lock:"),
dcc.Textarea(
id=ids.cargo_lock_textarea,
placeholder="Cargo.lock contents",
@@ -114,7 +114,7 @@ def layout():
html.Button(
className="button",
id=ids.cargo_lock_clear,
- children="Clear Cargo.toml",
+ children="Clear Cargo.lock",
),
],
),
@@ -160,10 +160,16 @@ def layout():
id=ids.generate_button,
children="Generate",
),
- dcc.Graph(
- id=ids.dependency_graph,
- figure={},
- style={"height": 1000},
+ dcc.Loading(
+ dcc.Graph(
+ id=ids.dependency_graph,
+ figure={},
+ style={"height": 1000},
+ ),
+ show_initially=False,
+ delay_show=500,
+ delay_hide=300,
+ fullscreen=True,
),
html.Button(
className="button",