kopia lustrzana https://github.com/cheeaun/phanpy
Prevent clicks on sandbox
rodzic
144aa9b506
commit
7819780f6b
|
@ -77,11 +77,6 @@
|
|||
|
||||
> .status,
|
||||
> *:not(.status-card-link) > .status {
|
||||
button,
|
||||
a {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
> .container > .meta {
|
||||
view-transition-name: status-meta;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue