From 116774c52a7017e0a8f8bfc185fb02499d19bd21 Mon Sep 17 00:00:00 2001 From: Elvia Benedith Date: Thu, 23 Nov 2023 11:55:20 +0100 Subject: [PATCH] calendar styles --- app/packs/src/decidim/calendar/calendar.js | 2 +- app/packs/stylesheets/decidim/calendar/calendar.scss | 2 +- app/views/decidim/calendar/calendar/_calendar_css.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/packs/src/decidim/calendar/calendar.js b/app/packs/src/decidim/calendar/calendar.js index 0cedae46..63cf7bf7 100644 --- a/app/packs/src/decidim/calendar/calendar.js +++ b/app/packs/src/decidim/calendar/calendar.js @@ -93,7 +93,7 @@ const calendar = new Calendar(calendarEl, { ? ` - ${info.event.extendedProps.subtitle}` : ""; const hour = "hour" in info.event.extendedProps - ? ` ${info.event.extendedProps.hour} ` + ? `${info.event.extendedProps.hour} ` : ""; return { html: `${hour}${info.event.title}${subtitle}` diff --git a/app/packs/stylesheets/decidim/calendar/calendar.scss b/app/packs/stylesheets/decidim/calendar/calendar.scss index aa760dbd..23781b9f 100644 --- a/app/packs/stylesheets/decidim/calendar/calendar.scss +++ b/app/packs/stylesheets/decidim/calendar/calendar.scss @@ -1,6 +1,6 @@ #calendar { .fc-title { - margin-left: 5px; + margin-left: 10px; } .fc-scroller { diff --git a/app/views/decidim/calendar/calendar/_calendar_css.html.erb b/app/views/decidim/calendar/calendar/_calendar_css.html.erb index 54db6989..103f9afb 100644 --- a/app/views/decidim/calendar/calendar/_calendar_css.html.erb +++ b/app/views/decidim/calendar/calendar/_calendar_css.html.erb @@ -23,7 +23,7 @@ .calendar-event-<%= item[:id]%>.has-hour::before { content: ""; position: absolute; - left: 5px; + left: 0; top: 50%; transform: translateY(-50%); width: 8px;