mirror of
https://github.com/origranot/reduced.to.git
synced 2025-03-15 19:51:54 +00:00
fix: fallback to other (#886)
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user