Skip to content

Commit

Permalink
Make dates sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
bonflintstone committed Oct 31, 2024
1 parent 6d39da7 commit b3618d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/events/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<% end %>
<% @events.group_by(&:date).each do |date, events| %>
<h3 class="text-xl font-bold mt-7 mb-3"><%= l(date, format: "%A %d.%m.%Y") %></h3>
<h3 class="text-xl font-bold p-3 mt-4 sticky top-0 bg-white border-b-2"><%= l(date, format: "%A %d.%m.%Y") %></h3>

<% events.each do |event| %>
<%= link_to event.link, target: "_blank" do %>
Expand Down

0 comments on commit b3618d9

Please sign in to comment.