From 469b1a85d04f19f8a1b784b9877cbd5416d00a12 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Thu, 26 Mar 2020 08:02:54 +0000 Subject: [PATCH] [FIX] web: show title for short event in day view In 13.0, as of 369c20a9 there is some style that will show an event with bigger font-size and spacing in calendar day view. In this commit, if an event is short (less than 30 pixels, so less than 45 minutes) we will decrease the spacing to have the same as in week view and see the event title more easily. opw-2216654 closes #48391 closes odoo/odoo#48409 X-original-commit: a4d170ad9e73d1d63404532b161911df020b5c36 Signed-off-by: Nicolas Lempereur (nle) --- addons/web/static/src/scss/web_calendar.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web/static/src/scss/web_calendar.scss b/addons/web/static/src/scss/web_calendar.scss index c81bf92ec47..97c2ef44f5c 100644 --- a/addons/web/static/src/scss/web_calendar.scss +++ b/addons/web/static/src/scss/web_calendar.scss @@ -200,6 +200,11 @@ $o-cw-filter-avatar-size: 20px; .fc-agendaDay-view .fc-event { padding: 10px; font-size: 14px; + + // Try to avoid showing no title for short event + &.fc-short { + padding-top: 0; + } } // ====== Week only