From c2df969b605cd8cc9fdeacfd77351b5b66ca5c7d Mon Sep 17 00:00:00 2001 From: Philipp Bock <p@philippbock.com> Date: Mon, 27 May 2024 16:14:13 +0200 Subject: [PATCH] Fix hover issues for real this time --- app/assets/stylesheets/application.tailwind.css | 11 +++++++++-- app/views/conferences/show.html.erb | 1 - 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/application.tailwind.css b/app/assets/stylesheets/application.tailwind.css index 5b4a2da..982c163 100644 --- a/app/assets/stylesheets/application.tailwind.css +++ b/app/assets/stylesheets/application.tailwind.css @@ -24,8 +24,15 @@ input[type=submit] { select { @apply pl-2 pr-6 py-1; } -.session-holder { @apply w-full; } -.session-holder:hover { height: auto; min-height: var(--height); } +.session-holder { + @apply w-full; + height: var(--height); + display: flex; +} +.session-holder:hover { + height: auto; + min-height: var(--height); +} .session { @apply border p-2 bg-slate-100 border-slate-300 rounded-md w-full hover:shadow-2xl; diff --git a/app/views/conferences/show.html.erb b/app/views/conferences/show.html.erb index 60a14f7..2864914 100644 --- a/app/views/conferences/show.html.erb +++ b/app/views/conferences/show.html.erb @@ -120,7 +120,6 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone) position: absolute; top: <%= (session.starts_at - timeline_starts_at) / 3600.0 * pixels_per_hour %>px; --height: <%= (session.ends_at - session.starts_at) / 3600.0 * pixels_per_hour %>px; - height: var(--height); "> <%= render partial: "sessions/session", locals: { session: session } %> </div> -- GitLab