summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2020-03-26 08:02:54 +0000
committerNicolas Lempereur <nle@odoo.com>2020-03-26 09:37:28 +0000
commit469b1a85d04f19f8a1b784b9877cbd5416d00a12 (patch)
tree88d4b6f7ef66cfe457c5685dfcd257502fcd65a9
parent82d2dcdf7db065bd325f56f779e3a3400fa73323 (diff)
[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) <nle@odoo.com>
-rw-r--r--addons/web/static/src/scss/web_calendar.scss5
1 files changed, 5 insertions, 0 deletions
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