From ad619ce72497cbbebd3aed4ffdfbb50d549834e6 Mon Sep 17 00:00:00 2001 From: Elliott Rose Date: Fri, 24 Mar 2023 14:40:55 +0100 Subject: [PATCH 1/3] Update height of vis comparison and observations/visibility so that there is no gap at bottom of page when in fullscreen --- assets/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/style.css b/assets/style.css index 0cc5ea5..668df1c 100644 --- a/assets/style.css +++ b/assets/style.css @@ -33,7 +33,7 @@ a.modebar-btn { .tab-content { background-color: #F0F1F2; height: -moz-fit-content; - height: 93.3vh !important; + height: 96.3vh !important; position: relative; bottom: 0; box-shadow: inset 5px 0px 5px lightgrey; @@ -86,7 +86,7 @@ a.modebar-btn { } #obs-vis-graph { - height: 76vh !important; + height: 79vh !important; margin: 0 !important; } -- GitLab From 0d4266b92eef219356dfa5faa3f9a04f3b6ea0a1 Mon Sep 17 00:00:00 2001 From: Elliott Rose Date: Fri, 24 Mar 2023 16:09:31 +0100 Subject: [PATCH 2/3] Fix issue with zoom sync only triggering from first pane on initial click --- tabs/forecast_callbacks.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tabs/forecast_callbacks.py b/tabs/forecast_callbacks.py index d736ec9..55953b4 100644 --- a/tabs/forecast_callbacks.py +++ b/tabs/forecast_callbacks.py @@ -809,14 +809,14 @@ def zoom_country(n_clicks, model, zoom, lat, lon): ) def zooms(viewport, models): """Syncronize all maps to have same center and zoom in mosaic""" - if viewport and viewport[0] is not None: - ctx = dash.callback_context - changed = dict(ctx.triggered_id) - index = models.index(changed) + ctx = dash.callback_context + changed = dict(ctx.triggered_id) + index = models.index(changed) + if viewport[index] is not None: return 1, \ - viewport[index]['zoom'], \ - viewport[index]['center'][0], \ - viewport[index]['center'][1] + viewport[index]['zoom'], \ + viewport[index]['center'][0], \ + viewport[index]['center'][1] raise PreventUpdate -- GitLab From 09cf7e78bc90391aab7ab537bd0634511d9b8565 Mon Sep 17 00:00:00 2001 From: Elliott Rose Date: Mon, 27 Mar 2023 10:19:40 +0200 Subject: [PATCH 3/3] Fix disclaimers in eval/vis section --- assets/style.css | 5 +++++ tabs/evaluation_callbacks.py | 1 + 2 files changed, 6 insertions(+) diff --git a/assets/style.css b/assets/style.css index 668df1c..1c1370c 100644 --- a/assets/style.css +++ b/assets/style.css @@ -101,6 +101,11 @@ a.modebar-btn { overflow: hidden; } +#eval-aeronet-disclaimer { + justify-content: flex-end !important; + margin-right: 16px; +} + #graph-eval-modis-obs, #graph-eval-modis-mod { padding: 0; margin: 0; diff --git a/tabs/evaluation_callbacks.py b/tabs/evaluation_callbacks.py index 2a3195b..9c152ef 100644 --- a/tabs/evaluation_callbacks.py +++ b/tabs/evaluation_callbacks.py @@ -826,6 +826,7 @@ def update_eval(obs): ), html.Div( DISCLAIMER_OBS, + id='eval-aeronet-disclaimer', className='disclaimer' ), ]) -- GitLab