chore: Design improvements for thumbnail and dropdown (#5822)

This commit is contained in:
Nithin David Thomas 2022-11-09 16:52:30 -08:00 committed by GitHub
parent 47c90e2085
commit 4f82859bba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 5 deletions

View file

@ -1,5 +1,9 @@
<template>
<div :class="thumbnailBoxClass" :style="{ height: size, width: size }">
<div
:class="thumbnailBoxClass"
:style="{ height: size, width: size }"
:title="title"
>
<!-- Using v-show instead of v-if to avoid flickering as v-if removes dom elements. -->
<img
v-show="shouldShowImage"
@ -72,6 +76,10 @@ export default {
type: Boolean,
default: false,
},
title: {
type: String,
default: '',
},
variant: {
type: String,
default: 'circle',