From abeb0762f6b8becc22ba58339d29bbab75781581 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Mon, 24 Mar 2025 17:27:24 -0500 Subject: [PATCH] Untangle list --- app/assets/stylesheets/bubbles.css | 12 ++---------- app/assets/stylesheets/trays.css | 11 +++++++---- app/views/bubbles/index.html.erb | 4 ++-- app/views/bubbles/list/_bubble.html.erb | 15 +++++---------- 4 files changed, 16 insertions(+), 26 deletions(-) diff --git a/app/assets/stylesheets/bubbles.css b/app/assets/stylesheets/bubbles.css index 8395270fb..3c5e721d5 100644 --- a/app/assets/stylesheets/bubbles.css +++ b/app/assets/stylesheets/bubbles.css @@ -266,14 +266,7 @@ --divider-offset: 1.2em; --hover-size: 0; - container-type: inline-size; - font-size: 1.4cqi; - inline-size: min(90ch, 100dvw); - max-inline-size: 100dvw; - - @media (max-width: 70ch) { - inline-size: 100%; - } + margin-inline: var(--tray-size); .bubble { order: 0; @@ -285,8 +278,6 @@ } ul { - margin-inline: var(--divider-offset); - li { border-radius: 0; list-style: none; @@ -391,6 +382,7 @@ } .bubble__tag { + font-weight: 700; max-inline-size: 75cqi; } diff --git a/app/assets/stylesheets/trays.css b/app/assets/stylesheets/trays.css index 38311e7ee..f1de034d6 100644 --- a/app/assets/stylesheets/trays.css +++ b/app/assets/stylesheets/trays.css @@ -1,5 +1,8 @@ +:root { + --tray-size: max(20dvw, 18rem); +} + .tray { - --size: 30ch; --height: calc(2.81lh + var(--block-space)); background-color: transparent; @@ -7,7 +10,7 @@ border-radius: 0.5em; display: flex; flex-direction: column; - inline-size: var(--size); + inline-size: var(--tray-size); justify-content: end; padding: var(--block-space-half) var(--inline-space); position: fixed; @@ -20,7 +23,7 @@ --z: calc(6 - var(--position)); inset: auto 0 0; - inline-size: var(--size); + inline-size: var(--tray-size); outline: 0; pointer-events: none; position: absolute; @@ -113,7 +116,7 @@ block-size: var(--height); display: none; inset: auto auto 0; - inline-size: var(--size); + inline-size: var(--tray-size); pointer-events: none; position: absolute; scale: var(--scale); diff --git a/app/views/bubbles/index.html.erb b/app/views/bubbles/index.html.erb index 7e735361e..c0d78891c 100644 --- a/app/views/bubbles/index.html.erb +++ b/app/views/bubbles/index.html.erb @@ -42,8 +42,8 @@ <% end %> -
-