diff --git a/assets/style.css b/assets/style.css index 0cc5ea57efcaa86ef3411942262c2a3b097a3143..1c1370cfe7a3ced30d13f56f323badd8474a6e4b 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; } @@ -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 2a3195b47f558f7f92e0aae5386b1419ab5d317e..9c152ef47e5e5810bcfb80a2570f67b9da75fc7d 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' ), ]) diff --git a/tabs/forecast_callbacks.py b/tabs/forecast_callbacks.py index d736ec93a1f5ec11112c3b63486a3715428fddc3..55953b42eeee654a7d295ca3c13ad688cd3bd341 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