mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 19:37:34 -07:00
fix click.stop
This commit is contained in:
parent
5cbd2a53b2
commit
09610b89cb
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue