From 036768fedeeab098296e33c0f31e7f7cc2973710 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Fri, 16 Jan 2026 14:30:47 -0600 Subject: [PATCH] Create popup initial alignment classes --- app/assets/stylesheets/card-columns.css | 1 + app/assets/stylesheets/cards.css | 2 +- app/assets/stylesheets/popup.css | 5 +++++ app/views/boards/show/menu/_column.html.erb | 2 +- app/views/cards/display/perma/_board.html.erb | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/card-columns.css b/app/assets/stylesheets/card-columns.css index c2e31cc17..3409b83de 100644 --- a/app/assets/stylesheets/card-columns.css +++ b/app/assets/stylesheets/card-columns.css @@ -378,6 +378,7 @@ } .cards__menu { + position: relative; z-index: var(--z-popup); } diff --git a/app/assets/stylesheets/cards.css b/app/assets/stylesheets/cards.css index a084b0592..3aec6e3b0 100644 --- a/app/assets/stylesheets/cards.css +++ b/app/assets/stylesheets/cards.css @@ -83,7 +83,7 @@ } dialog { - inset: 100% auto auto 0; + inset-block-start: 100%; } } diff --git a/app/assets/stylesheets/popup.css b/app/assets/stylesheets/popup.css index bfbefc87a..e27494153 100644 --- a/app/assets/stylesheets/popup.css +++ b/app/assets/stylesheets/popup.css @@ -21,11 +21,16 @@ display: var(--popup-display); } + /* The .pop-up--align- classes are used for initial alignment. + * The orient JS helper layers on the .orient- to avoid running + * off the edge of the screen and will override .popup--align */ + &:where(.popup--align-left), &.orient-left { inset-inline: auto 0; transform: translateX(0); } + &:where(.popup--align-right), &.orient-right { inset-inline: 0 auto; transform: translateX(0); diff --git a/app/views/boards/show/menu/_column.html.erb b/app/views/boards/show/menu/_column.html.erb index fa3ab38ff..ebfdd3855 100644 --- a/app/views/boards/show/menu/_column.html.erb +++ b/app/views/boards/show/menu/_column.html.erb @@ -3,7 +3,7 @@ <%= icon_tag "menu-dots-horizontal", class: "translucent" %> Column options - +