From fa9beab3eab77ddbc9d21cd1eb70ea0fe6be5b18 Mon Sep 17 00:00:00 2001 From: oco-odoo Date: Mon, 16 Sep 2019 11:31:31 +0000 Subject: [PATCH] [FIX] account: dashboard: Center the empty dashboard message horizontally when the setup bar is displayed on a small screen Before that, when using a small screen (with width <= 768 px) and showing the accounting dashboard of a company without any chart of accounts installed, the icon and message prompting to install a chart of accounts was displayed in the lower left corner, instead of being horizontally centered. closes odoo/odoo#36974 X-original-commit: 4999f47d7e283c6a5799e68f2b0e1351638e17a3 Signed-off-by: Nicolas Martinelli (nim) Co-authored-by: Nicolas Lempereur --- addons/web/static/src/scss/banner.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/scss/banner.scss b/addons/web/static/src/scss/banner.scss index d7237203897..be011d70698 100644 --- a/addons/web/static/src/scss/banner.scss +++ b/addons/web/static/src/scss/banner.scss @@ -1,8 +1,9 @@ .o_has_banner { .o_view_nocontent { top: 30%; - @media screen and (max-height: map-get($grid-breakpoints, 'md')) { + @include media-breakpoint-down(sm) { position: relative; + margin: auto; } } }