diff options
| author | tusooa <tusooa@kazv.moe> | 2023-01-15 10:00:44 -0500 |
|---|---|---|
| committer | tusooa <tusooa@kazv.moe> | 2023-01-15 10:00:44 -0500 |
| commit | d2ba67d565ba68acc1938dc9ae2c866a6e39d4d6 (patch) | |
| tree | 1dad722edc84b5ba1759a13e1944167c5ffcf7c3 /src/components/attachment | |
| parent | a28032fa58ff341b8815a0651d621ed358efd168 (diff) | |
| parent | 4d2056d8aaa8f2c20a3275503857d38ac9112e5f (diff) | |
Merge remote-tracking branch 'upstream/develop' into tusooa/stylelint
Diffstat (limited to 'src/components/attachment')
| -rw-r--r-- | src/components/attachment/attachment.js | 4 | ||||
| -rw-r--r-- | src/components/attachment/attachment.scss | 6 | ||||
| -rw-r--r-- | src/components/attachment/attachment.vue | 5 |
3 files changed, 12 insertions, 3 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 5dc50475..6e14b24d 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -36,6 +36,7 @@ library.add( const Attachment = { props: [ 'attachment', + 'compact', 'description', 'hideDescription', 'nsfw', @@ -71,7 +72,8 @@ const Attachment = { { '-loading': this.loading, '-nsfw-placeholder': this.hidden, - '-editable': this.edit !== undefined + '-editable': this.edit !== undefined, + '-compact': this.compact }, '-type-' + this.type, this.size && '-size-' + this.size, diff --git a/src/components/attachment/attachment.scss b/src/components/attachment/attachment.scss index cf38d45b..681bab29 100644 --- a/src/components/attachment/attachment.scss +++ b/src/components/attachment/attachment.scss @@ -266,4 +266,10 @@ &.-loading { cursor: progress; } + + &.-compact { + .placeholder-container { + padding-bottom: 0.5em; + } + } } diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 2a89886d..79f62806 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -162,10 +162,11 @@ target="_blank" > <FAIcon - size="5x" + :size="compact ? '2x' : '5x'" :icon="placeholderIconClass" + :title="localDescription" /> - <p> + <p v-if="!compact"> {{ localDescription }} </p> </a> |
