From 42b760c8fa27cfc75fcb2fd5b232defc9002e85f Mon Sep 17 00:00:00 2001 From: "Julien Carion (juca)" Date: Thu, 28 Mar 2024 13:02:53 +0100 Subject: [PATCH] [FIX] board: make embedded views scrollable This commit fixes an issue with the embedded views of "My dashboard" view: the embedded could take as much height as they needed which could result in excessive place taken by a single embedded view and this also had issues with the virtual hook which is not adapted to embedded views without scroll (this could result in completly blank space inside embedded gantt views when they would take too much space). To solve this issue, the commit adds a fixed maximum height to the embedded views (80% of the window height) and also adds a minimum width to their content so that it will be horizontally scrollable instead of being weirdly squished. Also tweaks a bit the padding of the embedded view so that it looks a bit better even with the added scroll bars. task-3834795 closes odoo/odoo#160568 X-original-commit: 3df65df6a4ea027b14cc7d877de96db0987f688f Related: odoo/enterprise#60117 Signed-off-by: Mathieu Duckerts-Antoine (dam) --- addons/board/static/src/board_controller.scss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/addons/board/static/src/board_controller.scss b/addons/board/static/src/board_controller.scss index 1fccdc6c486..d050e2ac835 100644 --- a/addons/board/static/src/board_controller.scss +++ b/addons/board/static/src/board_controller.scss @@ -30,10 +30,17 @@ align-self: start; > .o_view_controller { - padding: 0 12px 12px 12px; + padding: 0 6px 6px 6px; .o_graph_renderer canvas { height: 300px; } + .o_content { + max-height: 80vh; + overflow: auto; + > .o_renderer { + min-width: 1200px; + } + } } .o_column_quick_create, .o_control_panel {