fix: complete vehicle view theme class coverage

This commit is contained in:
2026-05-01 15:21:26 -04:00
parent f39c76e291
commit ac350238cd
+4 -4
View File
@@ -24,7 +24,7 @@
<main class="max-w-7xl mx-auto px-4 py-8"> <main class="max-w-7xl mx-auto px-4 py-8">
<!-- Breadcrumb --> <!-- Breadcrumb -->
<div class="mb-6"> <div class="mb-6">
<a href="<?php echo url('/home'); ?>" class="text-blue-600 hover:text-blue-800">← Back to Vehicles</a> <a href="<?php echo url('/home'); ?>" class="theme-text-muted hover:opacity-90">← Back to Vehicles</a>
</div> </div>
<?php if (isset($_SESSION['error'])): ?> <?php if (isset($_SESSION['error'])): ?>
@@ -222,7 +222,7 @@
<div id="editVehicleModal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"> <div id="editVehicleModal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div class="theme-surface rounded-lg p-6 w-full max-w-md"> <div class="theme-surface rounded-lg p-6 w-full max-w-md">
<div class="flex justify-between items-center mb-4"> <div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-semibold">Edit Vehicle</h3> <h3 class="text-xl font-semibold theme-text">Edit Vehicle</h3>
<button onclick="hideEditVehicleModal()" class="theme-text-muted hover:opacity-80"> <button onclick="hideEditVehicleModal()" class="theme-text-muted hover:opacity-80">
<i class="bi bi-x-lg"></i> <i class="bi bi-x-lg"></i>
</button> </button>
@@ -280,7 +280,7 @@
<div id="editMaintenanceModal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"> <div id="editMaintenanceModal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div class="theme-surface rounded-lg p-6 w-full max-w-2xl max-h-screen overflow-y-auto"> <div class="theme-surface rounded-lg p-6 w-full max-w-2xl max-h-screen overflow-y-auto">
<div class="flex justify-between items-center mb-4"> <div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-semibold">Edit Maintenance Record</h3> <h3 class="text-xl font-semibold theme-text">Edit Maintenance Record</h3>
<button onclick="hideEditMaintenanceModal()" class="theme-text-muted hover:opacity-80"> <button onclick="hideEditMaintenanceModal()" class="theme-text-muted hover:opacity-80">
<i class="bi bi-x-lg"></i> <i class="bi bi-x-lg"></i>
</button> </button>
@@ -362,7 +362,7 @@
.then(items => { .then(items => {
if (items.length > 0) { if (items.length > 0) {
suggestionsDiv.innerHTML = items.map(item => suggestionsDiv.innerHTML = items.map(item =>
`<div class="px-3 py-2 hover:opacity-95 cursor-pointer" onclick="selectSuggestion('${item.replace(/'/g, "\\'")}')">${item}</div>` `<div class="px-3 py-2 theme-text hover:opacity-95 cursor-pointer" onclick="selectSuggestion('${item.replace(/'/g, "\\'")}')">${item}</div>`
).join(''); ).join('');
suggestionsDiv.classList.remove('hidden'); suggestionsDiv.classList.remove('hidden');
} else { } else {