Skip to content

Commit

Permalink
Implemented loading overlay for domain tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanaem committed Jun 6, 2024
1 parent c419915 commit cf0b5ce
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 17 additions & 2 deletions climate_emotions_map/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,23 @@ def create_domain_tabs():
dmc.TabsPanel(
id=domain_full,
children=[
create_domain_heading(domain_full),
create_bar_plots_for_domain(domain_text=domain_full),
dcc.Loading(
id={
"type": "domain-loading-overlay",
"domain": domain_full,
},
children=[
create_domain_heading(domain_full),
create_bar_plots_for_domain(
domain_text=domain_full
),
],
overlay_style={
"visibility": "visible",
"filter": "blur(2px)",
},
type="circle",
),
],
value=domain_full,
pt="sm",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cryptography==42.0.5
# via
# pyopenssl
# urllib3
dash==2.16.1
dash==2.17.0
# via -r requirements.in
dash-core-components==2.0.0
# via dash
Expand Down

0 comments on commit cf0b5ce

Please sign in to comment.