club home redesign; deal multi-select delete; anchored card menus
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user