Skip to content

Commit

Permalink
fix spacing issue when start and end time for event had 4 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
joel authored and joel committed Dec 9, 2023
1 parent 802429d commit b082e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/timeline.html.slim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- view_object[:day_groups].each_with_index do |event_day, index|
- next if !event_day[:show_daily_events] && event_day[:events][:periodic].empty?
div style="display: flex; margin-bottom: 1rem"
div style="width: 16rem; vertical-align: top; padding-right: 1rem; border-right: 2px solid #ccc;"
div style="width: 15.5rem; vertical-align: top; padding-right: 1rem; border-right: 2px solid #ccc;"
div style="font-size: 2rem; font-weight: 700" = event_day[:day_name]
table
- event_day[:events][:daily].each do |event|
Expand All @@ -24,7 +24,7 @@
= event.letter
- else
i.fa-fw.fa-solid class="fa-#{event.icon}"
td style="whitespace: nowrap; font-size: .75rem; padding: 0 .5rem; width: 5rem;"
td style="white-space: nowrap; font-size: .75rem; padding: 0 .5rem; width: 5.5rem;"
= event.time.to_s.html_safe
td style="text-overflow: ellipsis; white-space: nowrap; overflow: hidden;max-width: 0;"
= event.summary
Expand Down

0 comments on commit b082e1d

Please sign in to comment.