diff --git a/ertviz/assets/ert-style.json b/ertviz/assets/ert-style.json index 040484a4..8e64632a 100644 --- a/ertviz/assets/ert-style.json +++ b/ertviz/assets/ert-style.json @@ -1,4 +1,7 @@ { + "dbc-column": { + "min-height": "500px" + }, "ensemble-selector": { "stylesheet": [ { diff --git a/ertviz/controllers/plot_view_controller.py b/ertviz/controllers/plot_view_controller.py index da77c549..5947524f 100644 --- a/ertviz/controllers/plot_view_controller.py +++ b/ertviz/controllers/plot_view_controller.py @@ -9,6 +9,7 @@ from ertviz.views import response_view, parameter_view import ertviz.controllers from ertviz.plugins._webviz_ert import WebvizErtPluginABC +import ertviz.assets as assets def _get_child(response: str, children: List[Component]) -> Optional[Component]: @@ -93,11 +94,7 @@ def create_grid( col_width = max(6, 12 // max(1, len(new_children))) bootstrapped_children = [ - dbc.Col( - child, - xl=col_width, - lg=12, - ) + dbc.Col(child, xl=col_width, lg=12, style=assets.ERTSTYLE["dbc-column"]) for child in new_children ] return dbc.Row(bootstrapped_children), new_children diff --git a/ertviz/plugins/_response_correlation.py b/ertviz/plugins/_response_correlation.py index a0d77f00..5768a543 100644 --- a/ertviz/plugins/_response_correlation.py +++ b/ertviz/plugins/_response_correlation.py @@ -10,7 +10,7 @@ correlation_view, parameter_selector_view, ) - +import ertviz.assets as assets import ertviz.models from ertviz.plugins._webviz_ert import WebvizErtPluginABC import ertviz.controllers @@ -127,6 +127,7 @@ def layout(self) -> Component: id_view=self.uuid("response-overview"), ), width=3, + style=assets.ERTSTYLE["dbc-column"], ), dbc.Col( correlation_view( @@ -134,6 +135,7 @@ def layout(self) -> Component: id_view=self.uuid("response-scatterplot"), ), width=3, + style=assets.ERTSTYLE["dbc-column"], ), dbc.Col( correlation_view( @@ -141,6 +143,7 @@ def layout(self) -> Component: id_view=self.uuid("response-correlation"), ), width=3, + style=assets.ERTSTYLE["dbc-column"], ), dbc.Col( correlation_view( @@ -148,6 +151,7 @@ def layout(self) -> Component: id_view=self.uuid("response-heatmap"), ), width=3, + style=assets.ERTSTYLE["dbc-column"], ), ] ),