Skip to content

Commit

Permalink
fix(Quote): don't trim the quote when it is not image share with caption
Browse files Browse the repository at this point in the history
Signed-off-by: DorraJaouad <[email protected]>
  • Loading branch information
DorraJaouad committed Dec 14, 2023
1 parent bb89b3f commit 00dd761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ export default {
// Fallback for loading mimeicons (preview for audio files is not provided)
if (this.previewAvailable !== 'yes' || this.mimetype.startsWith('audio/')) {
return {
width: '128px',
height: '128px',
width: this.smallPreview ? '32px' : '128px',
height: this.smallPreview ? '32px' : '128px',
}
}
Expand Down
5 changes: 1 addition & 4 deletions src/components/Quote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ components.
<!-- file preview-->
<NcRichText v-if="isFileShareMessage"
text="{file}"
class="quote__file-preview"
:arguments="richParameters" />
<!-- text -->
<blockquote v-if="!isFileShareWithoutCaption"
Expand Down Expand Up @@ -189,6 +188,7 @@ export default {
props: Object.assign({
token: this.token,
smallPreview: true,
rowLayout: !this.messageParameters[p].mimetype.startsWith('image/'),
}, this.messageParameters[p]),
}
} else {
Expand Down Expand Up @@ -328,9 +328,6 @@ export default {
position: relative;
margin: auto;
}
&__file-preview {
line-height: 0.5 !important;
}
}
</style>

0 comments on commit 00dd761

Please sign in to comment.