click-drag no longer opens posts

This commit is contained in:
ari melody 2024-06-30 21:08:14 +01:00
parent 7715e747a2
commit 73afcf6123
Signed by: ari
GPG key ID: CF99829C92678188
8 changed files with 23 additions and 63 deletions

View file

@ -8,7 +8,7 @@
<div class="post-body">
{#if post.warning}
<button class="post-warning" on:click|stopPropagation={() => { open_warned = !open_warned }}>
<button class="post-warning" on:click|stopPropagation={() => { open_warned = !open_warned }} on:mouseup|stopPropagation>
<strong>
{post.warning}
<span class="warning-instructions">
@ -28,7 +28,7 @@
{#if post.files && post.files.length > 0}
<div class="post-media-container" data-count={post.files.length}>
{#each post.files as file}
<div class="post-media {file.type}" on:click|stopPropagation={null}>
<div class="post-media {file.type}" on:click|stopPropagation on:mouseup|stopPropagation>
{#if file.type === "image"}
<a href={file.url} target="_blank">
<img src={file.url} alt={file.description} title={file.description} height="200" loading="lazy" decoding="async">