Make fallback icon grey
This commit is contained in:
parent
6543795755
commit
680cb72f29
@ -1,14 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- Preview image -->
|
||||||
<img
|
<img
|
||||||
v-if="blobUrl"
|
v-if="blobUrl"
|
||||||
:src="blobUrl"
|
:src="blobUrl"
|
||||||
alt="Attachment preview"
|
alt="Attachment preview"
|
||||||
>
|
>
|
||||||
<icon
|
|
||||||
|
<!-- Fallback -->
|
||||||
|
<div
|
||||||
v-else
|
v-else
|
||||||
size="6x"
|
class="icon-wrapper"
|
||||||
icon="file-image"
|
>
|
||||||
/>
|
<icon
|
||||||
|
size="6x"
|
||||||
|
icon="file-image"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@ -44,4 +51,8 @@ img {
|
|||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-wrapper {
|
||||||
|
color: var(--grey-500);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
Loading…
x
Reference in New Issue
Block a user