diff options
| author | ValD <maghtpol@gmail.com> | 2018-12-12 02:28:36 +0530 |
|---|---|---|
| committer | ValD <maghtpol@gmail.com> | 2018-12-12 02:28:36 +0530 |
| commit | b195ce12e1fcf28ea1e74a1231f9a31dcf71af0b (patch) | |
| tree | 231d09635a5d19584b51bf96e65149b421fd2561 /src/components | |
| parent | a8acba8cb2c639a3de3764df4226960458f996b8 (diff) | |
preload nsfw image
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/attachment/attachment.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 40e2cf1b..6c8a04ed 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -10,7 +10,7 @@ <a href="#" @click.prevent="toggleHidden()">Hide</a> </div> - <a v-if="type === 'image' && !hidden" class="image-attachment" :href="attachment.url" target="_blank" :title="attachment.description"> + <a v-if="type === 'image'" class="image-attachment" :class="{'hidden': hidden}" :href="attachment.url" target="_blank" :title="attachment.description"> <StillImage :class="{'small': isSmall}" referrerpolicy="no-referrer" :mimetype="attachment.mimetype" :src="attachment.large_thumb_url || attachment.url"/> </a> @@ -161,6 +161,10 @@ display: flex; flex: 1; + &.hidden { + display: none; + } + .still-image { width: 100%; height: 100%; |
