club home redesign; deal multi-select delete; anchored card menus

This commit is contained in:
2026-10-12 17:59:07 +03:30
parent a2b01f787e
commit faac26d07d
6 changed files with 373 additions and 50 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
export function cardMenuStyle(
cardId: string,
width = 160,
height = 190,
height = 230,
): Record<string, string> | null {
const btn = document.querySelector<HTMLElement>(
`[data-card-id="${CSS.escape(cardId)}"] .menu`,
@@ -21,7 +21,7 @@ export function bindMenuDismiss(isOpen: () => boolean, close: () => void): () =>
const onPointer = (e: PointerEvent) => {
if (!isOpen()) return;
const t = e.target as Element | null;
if (t?.closest('.menu-pop, .deal-card .menu')) return;
if (t?.closest('.menu-pop, [data-card-id] .menu')) return;
close();
};
const onKey = (e: KeyboardEvent) => {