Skip to content

Commit

Permalink
Add mb based on viewport height
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanSoto31 committed Sep 10, 2024
1 parent 5d2e954 commit db89e6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions app/views/schedules/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
<%= render partial: 'sessions/filters', locals: { resource: :schedule } %>
</div>

<div class="flex flex-col w-full h-full mb-[12rem]">
<div class="flex flex-col w-full h-full mb-[50vh]">
<% if @sessions.present? %>
<% previous_date = nil %>
<% @sessions.group_by(&:starts_at).each do |starts_at, sessions| %>
<%= content_tag(
:div,
Expand Down
3 changes: 1 addition & 2 deletions app/views/sessions/_card.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%# locals: (session:, user_is_an_attendee:, id_prefix: nil, last_session: false) %>
<%# locals: (session:, user_is_an_attendee:, id_prefix: nil) %>

<div class="relative flex flex-col w-full p-5 mb-4 bg-white rounded-[20px]" id="<%= dom_id(session, id_prefix) %>">
<a href="<%= session_path(session) %>" class="absolute top-0 bottom-0 left-0 right-0 z-0"></a>
Expand Down Expand Up @@ -74,4 +74,3 @@
</div>
</div>
</div>

3 changes: 1 addition & 2 deletions app/views/sessions/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
<%= render partial: 'sessions/filters', locals: { resource: :sessions } %>
</div>

<div class="flex flex-col w-full h-full mb-[12rem]">
<div class="flex flex-col w-full h-full mb-[50vh]">
<% if @sessions.present? %>
<% previous_date = nil %>
<% @sessions.group_by(&:starts_at).each do |starts_at, sessions| %>
<%= content_tag(
:div,
Expand Down

0 comments on commit db89e6b

Please sign in to comment.