mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-28 23:08:12 +09:00
fix click.stop
This commit is contained in:
parent
5cbd2a53b2
commit
09610b89cb
@ -16,6 +16,7 @@
|
||||
:data-count="
|
||||
mediaList.filter((media) => previewable(media)).length
|
||||
"
|
||||
@click.stop
|
||||
>
|
||||
<template
|
||||
v-for="media in mediaList.filter((media) =>
|
||||
@ -26,7 +27,6 @@
|
||||
v-if="media.type.startsWith('video')"
|
||||
:key="media.id"
|
||||
:video="media"
|
||||
@click.stop
|
||||
/>
|
||||
<XImage
|
||||
v-else-if="media.type.startsWith('image')"
|
||||
@ -35,7 +35,6 @@
|
||||
:data-id="media.id"
|
||||
:image="media"
|
||||
:raw="raw"
|
||||
@click.stop
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
@ -190,6 +189,7 @@ const previewable = (file: misskey.entities.DriveFile): boolean => {
|
||||
margin-top: 4px;
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
|
||||
&:before {
|
||||
content: "";
|
||||
@ -209,6 +209,7 @@ const previewable = (file: misskey.entities.DriveFile): boolean => {
|
||||
> * {
|
||||
overflow: hidden;
|
||||
border-radius: 6px;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
&[data-count="1"] {
|
||||
|
Loading…
Reference in New Issue
Block a user