Prevent clicks on sandbox

pull/1154/head
Lim Chee Aun 2025-05-16 19:13:58 +08:00
rodzic 144aa9b506
commit 7819780f6b
2 zmienionych plików z 12 dodań i 6 usunięć

Wyświetl plik

@ -77,11 +77,6 @@
> .status,
> *:not(.status-card-link) > .status {
button,
a {
pointer-events: none;
}
> .container > .meta {
view-transition-name: status-meta;
}

Wyświetl plik

@ -679,7 +679,18 @@ export default function Sandbox() {
</a>
<h1>Sandbox</h1>
</header>
<div class="sandbox-preview">
<div
class="sandbox-preview"
onClickCapture={(e) => {
const isAllowed = e.target.closest(
'.media, .media-caption, .spoiler-button, .spoiler-media-button',
);
if (isAllowed) return;
e.preventDefault();
e.stopPropagation();
return false;
}}
>
<FilterContext.Provider value={'home'}>
{toggleState.loading ? (
<Status