Refine UI

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/7429/head
Ryan Wang 2025-05-15 11:06:06 +08:00
parent a733b6f562
commit 24d3324488
2 changed files with 7 additions and 7 deletions

View File

@ -72,7 +72,7 @@ const modal = ref();
{{ condition.reason || "-" }} {{ condition.reason || "-" }}
</td> </td>
<td class="whitespace-nowrap px-4 py-3 text-sm text-gray-500"> <td class="whitespace-nowrap px-4 py-3 text-sm text-gray-500">
{{ condition.message || "-" }} <pre>{{ condition.message || "-" }}</pre>
</td> </td>
<td <td
v-tooltip="formatDatetime(condition.lastTransitionTime)" v-tooltip="formatDatetime(condition.lastTransitionTime)"

View File

@ -117,12 +117,12 @@ const lastCondition = computed(() => {
v-if="errorAlertVisible && lastCondition" v-if="errorAlertVisible && lastCondition"
class="w-full px-4 pb-2 sm:px-6" class="w-full px-4 pb-2 sm:px-6"
> >
<VAlert <VAlert type="error" :title="lastCondition.reason" :closable="false">
type="error" <template #description>
:title="lastCondition.reason" <div class="overflow-x-auto">
:description="lastCondition.message" <pre>{{ lastCondition.message }}</pre>
:closable="false" </div>
> </template>
<template #actions> <template #actions>
<VButton size="sm" @click="conditionsModalVisible = true"> <VButton size="sm" @click="conditionsModalVisible = true">
{{ $t("core.plugin.detail.operations.view_conditions.button") }} {{ $t("core.plugin.detail.operations.view_conditions.button") }}