Adds tooltip to file name in attachments list.

This commit is contained in:
mateuswetah 2022-08-01 10:18:25 -03:00
parent 355d9ea03c
commit ec4b2eb726
1 changed files with 8 additions and 2 deletions

View File

@ -5,8 +5,14 @@
:class="{'shows-modal-on-click' : modalOnClick}"
@click="modalOnClick? openPreviewModal() : null">
<figcaption
:style="{ 'max-width': size != undefined ? size + 'px' : '94px' }"
v-if="showName && file.title != undefined">{{ file.title }}</figcaption>
v-if="showName && file.title != undefined"
v-tooltip="{
content: file.title,
popperClass: [ 'tainacan-tooltip', 'tooltip']
}"
:style="{ 'max-width': size != undefined ? size + 'px' : '94px' }">
{{ file.title }}
</figcaption>
<div
:style="{ 'width': size != undefined ? size + 'px' : '94px', 'height': size != undefined ? size + 'px' : '94px' }"
class="image-wrapper">