unselectable images in buttons

This commit is contained in:
LionTion committed 2026-11-03 19:34:54 +01:00
1 parent d301cf6d9a
commit 15927216b3
3 files changed
+10

No files matched your search

+2
View File
@@ -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}
/>
<span
@@ -118,6 +119,7 @@ export default function ChargedButton({
clipPath: `inset(0 ${clipPercent}% 0 0)`,
WebkitClipPath: `inset(0 ${clipPercent}% 0 0)`,
}}
onContextMenu={() => false}
/>
<span className={clsx(styles["charged-button-label"], "lancelot-regular", whiteText && styles["charged-button-label-whiteText"])}>{children}</span>
+3
View File
@@ -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();
}}
>
<img
src={
+5
View File
@@ -8,12 +8,17 @@
justify-content: center;
transition: 150ms ease-out filter;
-webkit-filter: var(--shadow);
cursor: pointer;
filter: var(--shadow);
}
.image {
position: relative;
width: 220px;
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */
user-select: none; /* Standard */
}
.label {