Skip to content

Commit

Permalink
vertical center
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Sep 19, 2023
1 parent c5aab92 commit 7eb68f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/loftwah.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: center; /* Vertically center the content */
}

.link-item:hover {
Expand Down
6 changes: 3 additions & 3 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

<!-- Unpinned links -->
<div class="card text-light shadow-lg" style="background-color: rgba(0, 0, 0, 0.7);">
<div class="card-body">
<div class="row">
<div class="card-body d-flex flex-column align-items-center justify-content-center"> <!-- Added classes here -->
<div class="row w-100"> <!-- Added w-100 to make row full width -->
<% @links.each_with_index do |link, index| %>
<% if link.links_enabled && !link.public && !link.links_pinned %>
<div class="col-3 d-flex flex-column justify-content-center align-items-center">
Expand All @@ -47,7 +47,7 @@
</div>
<% end %>
<% if (index + 1) % 4 == 0 %>
</div><div class="row mt-4">
</div><div class="row mt-4 w-100"> <!-- Added w-100 to make row full width -->
<% end %>
<% end %>
</div>
Expand Down

0 comments on commit 7eb68f7

Please sign in to comment.