Fix notification attachment icon overflow

This commit is contained in:
tusooa 2023-01-14 23:20:28 -05:00
parent b4cbbefbd2
commit a58a6d3c35
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
6 changed files with 15 additions and 4 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

@ -102,7 +102,6 @@
padding-top: 0.5em;
}
.play-icon {
position: absolute;
font-size: 64px;
@ -265,4 +264,10 @@
object-fit: cover;
}
}
&.-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>

View File

@ -4,6 +4,7 @@ import { sumBy, set } from 'lodash'
const Gallery = {
props: [
'attachments',
'compact',
'limitRows',
'descriptions',
'limit',

View File

@ -20,6 +20,7 @@
v-for="(attachment, attachmentIndex) in row.items"
:key="attachment.id"
class="gallery-item"
:compact="compact"
:nsfw="nsfw"
:attachment="attachment"
:size="size"

View File

@ -33,6 +33,7 @@
<gallery
v-if="status.attachments.length !== 0"
class="attachments media-body"
:compact="compact"
:nsfw="nsfwClickthrough"
:attachments="status.attachments"
:limit="compact ? 1 : 0"