Merge remote-tracking branch 'upstream/develop' into tusooa/stylelint

This commit is contained in:
tusooa 2023-01-15 10:00:44 -05:00
commit d2ba67d565
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
19 changed files with 58 additions and 30 deletions

View file

@ -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,

View file

@ -266,4 +266,10 @@
&.-loading {
cursor: progress;
}
&.-compact {
.placeholder-container {
padding-bottom: 0.5em;
}
}
}

View file

@ -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>