diff --git a/app/assets/stylesheets/popup.css b/app/assets/stylesheets/popup.css index 2fbb56659..dea826395 100644 --- a/app/assets/stylesheets/popup.css +++ b/app/assets/stylesheets/popup.css @@ -76,6 +76,16 @@ } } + .popup__list { + display: flex; + flex-direction: column; + inline-size: 100%; + margin: 0; + max-inline-size: 100%; + padding: 0; + row-gap: 2px; + } + .popup__item { --btn-background: transparent; --btn-border-radius: 0.3em; @@ -96,17 +106,17 @@ } } + .icon { + block-size: 1em; + inline-size: 1em; + } + &:has(input:checked) { --btn-background: transparent; --btn-color: var(--color-ink); - .icon { - &.checked { - block-size: 1em; - display: block; - inline-size: 1em; - margin-inline-end: var(--inline-space); - } + .icon.checked { + display: block; } @media (any-hover: hover) { @@ -117,14 +127,8 @@ } } - .popup__list { - display: flex; - flex-direction: column; - inline-size: 100%; - margin: 0; - max-inline-size: 100%; - padding: 0; - row-gap: 2px; + .popup__radio { + margin-inline-start: var(--inline-space); } .popup__new { diff --git a/app/views/cards/index/_collections_filter.html.erb b/app/views/cards/index/_collections_filter.html.erb index f492a652b..9a803877e 100644 --- a/app/views/cards/index/_collections_filter.html.erb +++ b/app/views/cards/index/_collections_filter.html.erb @@ -13,7 +13,7 @@ <% end %> <% elsif Current.user.collections.many? %> <%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__group", data: { filter_target: "item", navigable_list_target: "item" } do %> -