unselectable images in buttons
This commit is contained in:
1 parent
d301cf6d9a
commit
15927216b3
3 files changed
+10
No files matched your search
@@ -108,6 +108,7 @@ export default function ChargedButton({
|
|||||||
className={styles["charged-button-frame"]}
|
className={styles["charged-button-frame"]}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
style={{ backgroundImage: whiteText ? "url(/buttons/Button_weiß.png)" : "url(/buttons/Button_leer.webp)" }}
|
style={{ backgroundImage: whiteText ? "url(/buttons/Button_weiß.png)" : "url(/buttons/Button_leer.webp)" }}
|
||||||
|
onContextMenu={() => false}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<span
|
<span
|
||||||
@@ -118,6 +119,7 @@ export default function ChargedButton({
|
|||||||
clipPath: `inset(0 ${clipPercent}% 0 0)`,
|
clipPath: `inset(0 ${clipPercent}% 0 0)`,
|
||||||
WebkitClipPath: `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>
|
<span className={clsx(styles["charged-button-label"], "lancelot-regular", whiteText && styles["charged-button-label-whiteText"])}>{children}</span>
|
||||||
|
|||||||
@@ -21,6 +21,9 @@ export default function OldButton({children, long=true, red=true, disabled=false
|
|||||||
style={style}
|
style={style}
|
||||||
onClick={(disabled ? undefined : onAction)}
|
onClick={(disabled ? undefined : onAction)}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
|
onContextMenu={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={
|
src={
|
||||||
|
|||||||
@@ -8,12 +8,17 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
transition: 150ms ease-out filter;
|
transition: 150ms ease-out filter;
|
||||||
-webkit-filter: var(--shadow);
|
-webkit-filter: var(--shadow);
|
||||||
|
cursor: pointer;
|
||||||
filter: var(--shadow);
|
filter: var(--shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.image {
|
.image {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 220px;
|
width: 220px;
|
||||||
|
-webkit-user-select: none; /* Safari */
|
||||||
|
-moz-user-select: none; /* Firefox */
|
||||||
|
-ms-user-select: none; /* IE10+/Edge */
|
||||||
|
user-select: none; /* Standard */
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
|
|||||||
Reference in new issue
Block a user