Fussy capitalization for shared text
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
.txt-break { word-break: break-word; }
|
||||
.txt-uppercase { text-transform: uppercase; }
|
||||
.txt-capitalize { text-transform: capitalize; }
|
||||
.txt-capitalize-first-letter::first-letter { text-transform: capitalize; }
|
||||
.txt-link { color: var(--color-link); text-decoration: underline; }
|
||||
|
||||
.font-weight-black { font-weight: 900; }
|
||||
|
||||
@@ -23,7 +23,7 @@ module Filter::Resources
|
||||
|
||||
def collection_titles
|
||||
if collections.none?
|
||||
Collection.one? ? [ Collection.first.name ] : [ "All boards" ]
|
||||
Collection.one? ? [ Collection.first.name ] : [ "all boards" ]
|
||||
else
|
||||
collections.map(&:name)
|
||||
end
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<% content_for :header do %>
|
||||
<h1 class="header__title divider divider--fade full-width">
|
||||
<span class="overflow-ellipsis"><%= @user_filtering.selected_collections_label %></span>
|
||||
<span class="overflow-ellipsis txt-capitalize-first-letter"><%= @user_filtering.selected_collections_label %></span>
|
||||
</h1>
|
||||
|
||||
<div class="header__actions header__actions--end">
|
||||
|
||||
Reference in New Issue
Block a user