Allow board name/picker and tags to wrap on several lines

This commit is contained in:
Adrien Maston
2026-02-11 11:28:57 +01:00
parent 03ed6df109
commit af390c436d
2 changed files with 22 additions and 1 deletions
+21
View File
@@ -63,6 +63,27 @@
opacity: 0.2;
}
.card__header {
@media (max-width: 639px) {
flex-wrap: wrap;
gap: var(--card-header-space) unset;
}
}
.card__tags {
@media (max-width: 639px) {
padding: 0.25lh;
}
}
.card__tags-list {
@media (min-width: 640px) {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
.card__body {
position: relative;
+1 -1
View File
@@ -15,7 +15,7 @@
</div>
<% if card.tags.any? %>
<div class="min-width overflow-ellipsis">
<div class="card__tags-list min-width">
<% card.tags.each_with_index do |tag, index| %>
<%= link_to cards_path(board_ids: [ card.board ], tag_ids: [ tag.id ]),
class: "card__tag btn btn--plain min-width txt-uppercase fill-transparent" do %>