Fix card grid layout

This commit is contained in:
Andy Smith
2026-01-06 13:38:50 -06:00
parent ffc19a864e
commit 802ccef9bf
5 changed files with 10 additions and 11 deletions
+7 -8
View File
@@ -271,17 +271,10 @@
--cards-gap: 1rem;
--card-grid-columns: 1;
align-items: start;
container-type: inline-size;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: var(--cards-gap);
justify-content: center;
inline-size: 100%;
margin-inline: auto;
max-inline-size: var(--main-width);
padding-inline: 1ch;
@media (min-width: 640px) {
--card-grid-columns: 2;
@@ -292,7 +285,13 @@
}
.cards__list {
display: contents;
align-items: start;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: var(--cards-gap);
justify-content: center;
padding: 1ch;
}
.card {
+1 -1
View File
@@ -27,7 +27,7 @@
<%= render "boards/show/not_now", board: board %>
</div>
<%= render "boards/show/maybe", board: board, page: page %>
<%= render "boards/show/stream", board: board, page: page %>
<div class="card-columns__right">
<%= render partial: "boards/show/column", collection: board.columns.sorted, cached: ->(column){ [ column, column.leftmost?, column.rightmost? ] } %>
@@ -1 +1 @@
<%= turbo_stream.replace("maybe", partial: "boards/show/maybe", method: :morph, locals:{ board: @card.board, page: @page }) %>
<%= turbo_stream.replace("maybe", partial: "boards/show/stream", method: :morph, locals:{ board: @card.board, page: @page }) %>
@@ -10,7 +10,7 @@
<%= render "public/boards/show/not_now", board: board %>
</div>
<%= render "public/boards/show/maybe", board: board, page: page %>
<%= render "public/boards/show/stream", board: board, page: page %>
<div class="card-columns__right">
<%= render partial: "public/boards/show/column", collection: board.columns, cached: true %>