From c8b3dc91dc394ddec2e7e56b2959db026384a3fc Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 12 Feb 2021 14:00:23 +0000 Subject: [FIX] web: show more text of short calendar event In a4d170ad9 there were some improvment to not show event totally empty on the day calendar view because of different style (font + padding). The lower part of the text was still a little cut, this commit try to improve this for week and day view mode by removing 5 additional pixels. opw-2422700 note: Also fix the fc-short for fullcalendar Odoo, we had this 2019 change: https://github.com/fullcalendar/fullcalendar/commit/e879c430013ed that made it not working without title (odoo use case), in 2020 it was reverted when refactoring for 5.0: https://github.com/fullcalendar/fullcalendar/commit/7c7ce1e8f94b closes odoo/odoo#66091 X-original-commit: b856d312be19b0fdf636600a76c4d9b427eedb7c Signed-off-by: Nicolas Lempereur (nle) --- addons/web/static/src/scss/web_calendar.scss | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'addons/web/static/src/scss') diff --git a/addons/web/static/src/scss/web_calendar.scss b/addons/web/static/src/scss/web_calendar.scss index e256e575812..f7e40fbe4e4 100644 --- a/addons/web/static/src/scss/web_calendar.scss +++ b/addons/web/static/src/scss/web_calendar.scss @@ -51,6 +51,11 @@ $o-cw-filter-avatar-size: 20px; font-weight: 500; } + // Try to show one full lien for short event + &.fc-short .fc-content { + margin-top: 1px; + } + &.o_cw_custom_highlight { z-index: 10!important; @@ -208,6 +213,7 @@ $o-cw-filter-avatar-size: 20px; // Try to avoid showing no title for short event &.fc-short { padding-top: 0; + padding-bottom: 0; } } -- cgit v1.2.3