blah
This commit is contained in:
parent
e6abf4676d
commit
8ee23a4ff6
1 changed files with 7 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
|||
@click.prevent="toggleHidden"
|
||||
>
|
||||
<img
|
||||
v-if="!nsfwUseBlur"
|
||||
:key="nsfwImage"
|
||||
class="nsfw"
|
||||
:src="nsfwImage"
|
||||
|
@ -48,13 +49,14 @@
|
|||
<a
|
||||
v-if="type === 'image' && (!hidden || preloadImage)"
|
||||
class="image-attachment"
|
||||
:class="{'hidden': hidden && preloadImage }"
|
||||
:class="{'hidden': hidden && preloadImage && !nsfwUseBlur}"
|
||||
:href="attachment.url"
|
||||
target="_blank"
|
||||
:title="attachment.description"
|
||||
@click="openModal"
|
||||
>
|
||||
<StillImage
|
||||
:class="{'nsfw-blur': hidden && nsfwUseBlur}"
|
||||
:referrerpolicy="referrerpolicy"
|
||||
:mimetype="attachment.mimetype"
|
||||
:src="attachment.large_thumb_url || attachment.url"
|
||||
|
@ -286,6 +288,10 @@
|
|||
height: 100%;
|
||||
}
|
||||
|
||||
.nsfw-blur {
|
||||
filter: blur(3.0rem);
|
||||
}
|
||||
|
||||
img {
|
||||
image-orientation: from-image; // NOTE: only FF supports this
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue