fix: align home view flash and table styles with theme system

This commit is contained in:
2026-05-01 15:16:39 -04:00
parent 6d73ab0592
commit fa0ad72cac
+3 -3
View File
@@ -23,13 +23,13 @@
<main class="max-w-7xl mx-auto px-4 py-8"> <main class="max-w-7xl mx-auto px-4 py-8">
<?php if (isset($_SESSION['error'])): ?> <?php if (isset($_SESSION['error'])): ?>
<div class="bg-red-100 border border-red-400 text-red-700 dark:bg-red-950/40 dark:border-red-800 dark:text-red-200 px-4 py-3 rounded mb-4"> <div class="border px-4 py-3 rounded mb-4" style="background-color: color-mix(in srgb, #ef4444 14%, var(--theme-surface)); border-color: color-mix(in srgb, #ef4444 40%, var(--theme-border)); color: var(--theme-text);">
<?php echo htmlspecialchars($_SESSION['error']); unset($_SESSION['error']); ?> <?php echo htmlspecialchars($_SESSION['error']); unset($_SESSION['error']); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if (isset($_SESSION['success'])): ?> <?php if (isset($_SESSION['success'])): ?>
<div class="bg-green-100 border border-green-400 text-green-700 dark:bg-green-950/40 dark:border-green-800 dark:text-green-200 px-4 py-3 rounded mb-4"> <div class="border px-4 py-3 rounded mb-4" style="background-color: color-mix(in srgb, #22c55e 14%, var(--theme-surface)); border-color: color-mix(in srgb, #22c55e 40%, var(--theme-border)); color: var(--theme-text);">
<?php echo htmlspecialchars($_SESSION['success']); unset($_SESSION['success']); ?> <?php echo htmlspecialchars($_SESSION['success']); unset($_SESSION['success']); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
@@ -97,7 +97,7 @@
<?php else: ?> <?php else: ?>
<div class="theme-surface rounded-lg shadow-sm overflow-hidden"> <div class="theme-surface rounded-lg shadow-sm overflow-hidden">
<table class="w-full"> <table class="w-full">
<thead class="theme-surface-alt theme-border"> <thead class="theme-surface-alt theme-border border-b">
<tr> <tr>
<th class="px-6 py-3 text-left text-xs font-medium theme-text-muted uppercase tracking-wider">Vehicle</th> <th class="px-6 py-3 text-left text-xs font-medium theme-text-muted uppercase tracking-wider">Vehicle</th>
<th class="px-6 py-3 text-left text-xs font-medium theme-text-muted uppercase tracking-wider">Details</th> <th class="px-6 py-3 text-left text-xs font-medium theme-text-muted uppercase tracking-wider">Details</th>