Skip to content

Commit

Permalink
fixup! fix(Quote): Add file preview in reply with its shortened caption
Browse files Browse the repository at this point in the history
  • Loading branch information
DorraJaouad committed Dec 5, 2023
1 parent 6ec85e8 commit 5e60d4e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/components/Quote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ components.
disable-menu />
{{ getDisplayName }}
</div>
<div v-if="isFileShareMessage"
class="quote__main__text">
<NcRichText text="{file}"
class="file-preview"
:arguments="richParameters"
:autolink="true" />
</div>
<blockquote v-if="!withoutCaption"
<!-- file preview-->
<NcRichText v-if="isFileShareMessage"
text="{file}"
class="quote__file__preview"
:arguments="richParameters"
:autolink="true" />
<!-- text -->
<blockquote v-if="!isFileShareWithoutCaption"
class="quote__main__text">
<p dir="auto">{{ shortenedQuoteMessage }}</p>
</blockquote>
Expand Down Expand Up @@ -176,7 +176,7 @@ export default {
return Object.keys(Object(this.messageParameters)).some(key => key.startsWith('file'))
},
withoutCaption() {
isFileShareWithoutCaption() {
return this.isFileShareMessage && this.message === '{file}'
},
Expand Down Expand Up @@ -329,9 +329,9 @@ export default {
position: relative;
margin: auto;
}
&__file__preview {
line-height: 0.5 !important;
}
}
.file-preview {
line-height: 0.5;
}
</style>

0 comments on commit 5e60d4e

Please sign in to comment.