From 15927216b3192d63db0ff2b17cef5e5bb8895c7f Mon Sep 17 00:00:00 2001 From: LionTion Date: Tue, 3 Nov 2026 19:34:54 +0100 Subject: [PATCH] unselectable images in buttons --- src/components/ChargedButton.tsx | 2 ++ src/components/OldButton.tsx | 3 +++ src/css/OldButton.module.css | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/src/components/ChargedButton.tsx b/src/components/ChargedButton.tsx index 4643159..e14f724 100644 --- a/src/components/ChargedButton.tsx +++ b/src/components/ChargedButton.tsx @@ -108,6 +108,7 @@ export default function ChargedButton({ className={styles["charged-button-frame"]} aria-hidden="true" style={{ backgroundImage: whiteText ? "url(/buttons/Button_weiß.png)" : "url(/buttons/Button_leer.webp)" }} + onContextMenu={() => false} /> false} /> {children} diff --git a/src/components/OldButton.tsx b/src/components/OldButton.tsx index bc96758..4dc143a 100644 --- a/src/components/OldButton.tsx +++ b/src/components/OldButton.tsx @@ -21,6 +21,9 @@ export default function OldButton({children, long=true, red=true, disabled=false style={style} onClick={(disabled ? undefined : onAction)} disabled={disabled} + onContextMenu={(e) => { + e.preventDefault(); + }} >