From c085266ceb00a07393ad39c1f851c6319b71e79c Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Fri, 25 Apr 2025 12:42:22 -0500 Subject: [PATCH] Filter collections menus, add keyboard shortcuts --- app/assets/stylesheets/base.css | 13 +++++++ .../cards/index/_collections_filter.html.erb | 4 +-- app/views/cards/index/_header.html.erb | 35 ++++++++++++++----- app/views/events/_filter.html.erb | 31 ++++++++++++---- .../events/filter/_collection_option.html.erb | 4 +-- app/views/terminals/show.html.erb | 2 +- 6 files changed, 68 insertions(+), 21 deletions(-) diff --git a/app/assets/stylesheets/base.css b/app/assets/stylesheets/base.css index 9301bbc61..001fd58dd 100644 --- a/app/assets/stylesheets/base.css +++ b/app/assets/stylesheets/base.css @@ -85,6 +85,19 @@ list-style: none; } + kbd { + border: 1px solid; + border-radius: .3em; + box-shadow: 0 0.1em 0 currentColor; + font-family: var(--font-mono); + font-size: var(--text-x-small); + font-weight: 600; + opacity: 0.7; + padding: 0em 0.4em; + text-transform: uppercase; + white-space: nowrap; + } + video { max-inline-size: 100%; } diff --git a/app/views/cards/index/_collections_filter.html.erb b/app/views/cards/index/_collections_filter.html.erb index 3ac3d2605..5279d6807 100644 --- a/app/views/cards/index/_collections_filter.html.erb +++ b/app/views/cards/index/_collections_filter.html.erb @@ -20,7 +20,7 @@ <% end %> <% Current.user.collections.order(:name).each do |collection| %> -