1
0
mirror of https://github.com/origranot/reduced.to.git synced 2025-03-15 19:51:54 +00:00

fix: fallback to other ()

This commit is contained in:
orig
2024-11-04 01:24:29 +02:00
committed by GitHub
parent 2b2bfd6fa0
commit 8a2cc58716

@ -72,8 +72,10 @@ export const DevicesChart = component$((props: DevicesChartProps) => {
<div key={item.field} class="group flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-500/10">
<div class="relative z-10 flex h-8 w-full max-w-[calc(100%-2rem)] items-center">
<div class="z-10 flex items-center space-x-2 px-2">
<img alt={item.field} src={icons[item.field.toLowerCase()] || UNKNOWN_FAVICON_SMALL} class="h-4 w-4" />
<div class="truncate text-sm text-gray-800 dark:text-gray-200 underline-offset-4 group-hover:underline">{item.field}</div>
<img alt={item.field} src={icons[item.field?.toLowerCase()] || UNKNOWN_FAVICON_SMALL} class="h-4 w-4" />
<div class="truncate text-sm text-gray-800 dark:text-gray-200 underline-offset-4 group-hover:underline">
{item.field || 'Other'}
</div>
</div>
<div
class="absolute h-full origin-left rounded-sm bg-orange-100 dark:bg-orange-500/30"