Skip to content

Commit

Permalink
Fix spacing in 'membership_requests/index'
Browse files Browse the repository at this point in the history
When having membership requests received and sent, the title of the
latter had too much spacing on top.
  • Loading branch information
lujanfernaud committed Aug 8, 2018
1 parent 4ba3b57 commit e7f5b63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id="membership-request-<%= membership_request.id %>"
class="row d-flex mb-4 box bg-white">
class="row d-flex mt-4 box bg-white">

<a href="<%= group_member_path(membership_request.group,
membership_request.user) %>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id="membership-request-<%= membership_request.id %>"
class="row d-flex mb-4 box bg-white">
class="row d-flex mt-4 box bg-white">

<a href="<%= group_path(membership_request.group) %>"
class="overflow-hidden">
Expand Down
8 changes: 4 additions & 4 deletions app/views/users/membership_requests/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<div class="col-md-12 col-lg-10 col-xl-8 mb-3">

<% if @membership_requests_received.any? %>
<h2 class="text-center mt-2rem mb-2rem pt-2 pb-2">
<h2 class="text-center mt-2rem mb-2 pt-2 pb-2">
Membership Requests Received
</h2>

<div class="d-flex flex-column mt-4">
<div class="d-flex flex-column">
<% @membership_requests_received.each do |membership_request| %>

<%= render "membership_request_received",
Expand All @@ -20,11 +20,11 @@
<% end %>

<% if @membership_requests_sent.any? %>
<h2 class="text-center mt-2rem mb-2rem pt-2 pb-2">
<h2 class="text-center mt-2rem mb-2 pt-2 pb-2">
Membership Requests Sent
</h2>

<div class="d-flex flex-column mt-4">
<div class="d-flex flex-column">
<% @membership_requests_sent.each do |membership_request| %>

<%= render "membership_request_sent",
Expand Down

0 comments on commit e7f5b63

Please sign in to comment.