fix: make home table divider theming reliable

This commit is contained in:
2026-05-01 15:26:57 -04:00
parent 7555303036
commit 83cc38d471
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -106,7 +106,7 @@
<th class="px-6 py-3 text-left text-xs font-medium theme-text-muted uppercase tracking-wider">Last Service</th> <th class="px-6 py-3 text-left text-xs font-medium theme-text-muted uppercase tracking-wider">Last Service</th>
</tr> </tr>
</thead> </thead>
<tbody class="theme-border [&>tr]:border-b [&>tr]:theme-border [&>tr:last-child]:border-b-0"> <tbody class="theme-row-dividers">
<?php foreach ($vehicles as $vehicle): ?> <?php foreach ($vehicles as $vehicle): ?>
<tr class="theme-surface-alt hover:opacity-95 cursor-pointer" onclick="window.location='<?php echo url('/vehicles/' . $vehicle['id']); ?>'"> <tr class="theme-surface-alt hover:opacity-95 cursor-pointer" onclick="window.location='<?php echo url('/vehicles/' . $vehicle['id']); ?>'">
<td class="px-6 py-4 whitespace-nowrap"> <td class="px-6 py-4 whitespace-nowrap">
+8
View File
@@ -88,6 +88,14 @@ if ($themeSection === 'head'):
border-color: var(--theme-border); border-color: var(--theme-border);
} }
.theme-row-dividers > tr {
border-bottom: 1px solid var(--theme-border);
}
.theme-row-dividers > tr:last-child {
border-bottom-width: 0;
}
.theme-input { .theme-input {
background-color: var(--theme-surface); background-color: var(--theme-surface);
border-color: var(--theme-border); border-color: var(--theme-border);