Make it look like the filter

This commit is contained in:
Jason Zimdars
2024-10-21 16:39:39 -05:00
parent 7e6890cb46
commit 128fc22eb1
3 changed files with 9 additions and 3 deletions
+6
View File
@@ -1,6 +1,12 @@
.bucket {
inline-size: 45ch;
line-height: 1.2;
mark {
background-color: transparent;
color: var(--color-link);
text-decoration: underline;
}
}
.buckets {
+2 -2
View File
@@ -15,10 +15,10 @@ module Bucket::View::Summarized
end
def assignee_summary
"assigned to #{assignee_names.to_choice_sentence}" if assignee_names.any?
"assigned to <mark>#{assignee_names.to_choice_sentence}</mark>" if assignee_names.any?
end
def tag_summary
"tagged #{tag_names.to_choice_sentence}" if tag_names.any?
"tagged <mark>#{tag_names.to_choice_sentence}</mark>" if tag_names.any?
end
end
+1 -1
View File
@@ -16,7 +16,7 @@
<div class="flex align-center justify-center flex-column flex-wrap center">
<%= link_to path, class: "txt-ink flex flex-column" do %>
<strong class="txt-x-large"><%= view.summary %> in <%= view.bucket.name %></strong>
<strong class="txt-x-large"><%= view.summary.html_safe %> in <mark><%= view.bucket.name %></mark></strong>
<% end %>
</div>
</li>