From c7b520180c0ba1214a59cd22c6a81fd0e9f0db8c Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Fri, 31 Oct 2025 11:18:25 -0500 Subject: [PATCH] Fussy capitalization for shared text --- app/assets/stylesheets/utilities.css | 1 + app/models/filter/resources.rb | 2 +- app/views/cards/index.html.erb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/utilities.css b/app/assets/stylesheets/utilities.css index cea383315..ec51df988 100644 --- a/app/assets/stylesheets/utilities.css +++ b/app/assets/stylesheets/utilities.css @@ -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; } diff --git a/app/models/filter/resources.rb b/app/models/filter/resources.rb index 669b214f4..3dc777b2f 100644 --- a/app/models/filter/resources.rb +++ b/app/models/filter/resources.rb @@ -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 diff --git a/app/views/cards/index.html.erb b/app/views/cards/index.html.erb index 21045e866..9fba5f9ea 100644 --- a/app/views/cards/index.html.erb +++ b/app/views/cards/index.html.erb @@ -5,7 +5,7 @@ <% content_for :header do %>

- <%= @user_filtering.selected_collections_label %> + <%= @user_filtering.selected_collections_label %>