From fd807279612e4a8d403d1dd318b83f85474a657e Mon Sep 17 00:00:00 2001 From: franflame Date: Wed, 18 Sep 2024 16:51:52 -0700 Subject: [PATCH 1/2] Use Loading() for crystal visualization --- crystal_toolkit/components/structure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crystal_toolkit/components/structure.py b/crystal_toolkit/components/structure.py index 459e024d..f5ee57d9 100644 --- a/crystal_toolkit/components/structure.py +++ b/crystal_toolkit/components/structure.py @@ -25,7 +25,7 @@ from crystal_toolkit.core.legend import Legend from crystal_toolkit.core.mpcomponent import MPComponent from crystal_toolkit.core.scene import Scene -from crystal_toolkit.helpers.layouts import H2, Field, dcc, html +from crystal_toolkit.helpers.layouts import H2, Field, dcc, html, Loading from crystal_toolkit.settings import SETTINGS # TODO: make dangling bonds "stubs"? (fixed length) @@ -887,7 +887,7 @@ def _sub_layouts(self) -> dict[str, Component]: ) return { - "struct": struct_layout, + "struct": Loading(struct_layout), "options": options_layout, "title": title_layout, "legend": legend_layout, From 2cacd59262a123303ada87a40aba520e9ca51ad7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Sep 2024 00:09:47 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- crystal_toolkit/components/structure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crystal_toolkit/components/structure.py b/crystal_toolkit/components/structure.py index f5ee57d9..2f761e31 100644 --- a/crystal_toolkit/components/structure.py +++ b/crystal_toolkit/components/structure.py @@ -25,7 +25,7 @@ from crystal_toolkit.core.legend import Legend from crystal_toolkit.core.mpcomponent import MPComponent from crystal_toolkit.core.scene import Scene -from crystal_toolkit.helpers.layouts import H2, Field, dcc, html, Loading +from crystal_toolkit.helpers.layouts import H2, Field, Loading, dcc, html from crystal_toolkit.settings import SETTINGS # TODO: make dangling bonds "stubs"? (fixed length)