[Style] Improve error message in missing models dialog (#2997)

This commit is contained in:
Christian Byrne
2025-03-12 07:41:31 -07:00
committed by GitHub
parent 313f32b094
commit 9be090f929

View File

@@ -5,9 +5,20 @@
<div class="file-details">
<span class="file-type" :title="hint">{{ label }}</span>
</div>
<div v-if="props.error" class="file-error">
<Message
v-if="props.error"
severity="error"
icon="pi pi-exclamation-triangle"
size="small"
variant="outlined"
class="h-min my-2 px-1 max-w-xs"
:title="props.error"
:pt="{
text: { class: 'overflow-hidden text-ellipsis' }
}"
>
{{ props.error }}
</div>
</Message>
</div>
<div class="file-action">
<Button
@@ -25,6 +36,7 @@
<script setup lang="ts">
import Button from 'primevue/button'
import Message from 'primevue/message'
import { computed } from 'vue'
import { useDownload } from '@/composables/useDownload'