From 2b62dafc63688a226655366daf3505b697fd1fca Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Fri, 21 Jul 2023 11:23:43 +0200 Subject: [PATCH] tweak the spacing of event type label --- app/views/proposals/show.html.haml | 2 +- app/views/schedules/_event.html.haml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/proposals/show.html.haml b/app/views/proposals/show.html.haml index 196edaf1e..d1f32975c 100644 --- a/app/views/proposals/show.html.haml +++ b/app/views/proposals/show.html.haml @@ -30,7 +30,7 @@ .div{ style: 'margin: 3px; flex: 1' } - if @event.event_type.present? - color = css_background_color(@event.event_type&.color || '#f5f5f5') - %h3{style: 'display: inline-block'} + %span.h3 .label{ style: "#{color} margin: 4px; display: inline-block"} = @event.event_type.title = join_event_link(@event, @event_schedule, current_user) diff --git a/app/views/schedules/_event.html.haml b/app/views/schedules/_event.html.haml index 304d83c43..122d3e1e1 100644 --- a/app/views/schedules/_event.html.haml +++ b/app/views/schedules/_event.html.haml @@ -19,7 +19,6 @@ - if event.subtitle.present? %br %small{style: color_style}= event.subtitle - %span - event.speakers_ordered.each do |speaker| = image_tag speaker.profile_picture, class: 'img-circle', alt: speaker.name