fix: keep the SMS credit chip pastel green when the balance is healthy

This commit is contained in:
2026-10-20 10:25:38 +03:30
parent bbbedc6059
commit be7ae0a1d8
+4 -4
View File
@@ -25,7 +25,7 @@ const toneClass = computed(() => {
if (level === 'critical') return 'critical';
if (level === 'warning') return 'warning';
if ((summary.value?.balanceRials ?? 0) < 0) return 'negative';
return 'ok';
return 'healthy';
});
const chargeInfo = computed(() => summary.value?.chargeInfo ?? null);
@@ -205,10 +205,10 @@ defineExpose({ refresh: load });
box-sizing: border-box;
margin: 0;
padding: 0 4px 0 2px;
border: 1px solid #a7f3d0;
border: 1px solid #c3ead6;
border-radius: 10px;
background: color-mix(in srgb, #ecfdf5 70%, #fff);
color: #065f46;
background: #f2fbf6;
color: #1f7a52;
font-size: 0.75rem;
line-height: 1;
white-space: nowrap;