diff options
author | marco <marcoambrosini@pm.me> | 2022-01-20 15:53:54 +0100 |
---|---|---|
committer | marco <marcoambrosini@pm.me> | 2022-01-20 15:53:54 +0100 |
commit | 603de3b869c3b372bf559ee410103d7e4d72da8c (patch) | |
tree | e38c4567dfb4e85b384665a09f4c9a4e395bb471 /src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue | |
parent | 3688e0c5b711fcf8a3a2567a939a2f5d78d408cd (diff) |
Fix linter errors
Signed-off-by: marco <marcoambrosini@pm.me>
Diffstat (limited to 'src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue')
-rw-r--r-- | src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue index fac2ef9bd..1de3076a6 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue @@ -22,7 +22,8 @@ --> <template> - <file-preview v-bind="filePreview" + <file-preview + v-bind="filePreview" :tabindex="wrapperTabIndex" class="file-preview" :class="{ 'file-preview--viewer-available': isViewerAvailable, 'file-preview--upload-editor': isUploadEditor }" @@ -39,21 +40,25 @@ fill-color="#ffffff" title="" /> </span> - <img v-if="!failed" + <img + v-if="!failed" v-tooltip="previewTooltip" :class="previewImageClass" class="file-preview__image" alt="" :src="previewUrl"> - <img v-else + <img + v-else :class="previewImageClass" alt="" :src="defaultIconUrl"> </div> - <span v-if="isLoading" + <span + v-if="isLoading" v-tooltip="previewTooltip" class="preview loading" /> - <button v-if="isUploadEditor" + <button + v-if="isUploadEditor" tabindex="1" :aria-label="removeAriaLabel" class="remove-file primary"> |