feat(dashboard): add hover effects to stats blocks and external link icon to content list
This commit is contained in:
@@ -80,7 +80,7 @@ export default function TechSpecs({ browsers, os, devices, screenResolutions }:
|
||||
{hasData ? (
|
||||
<>
|
||||
{displayedData.map((item, index) => (
|
||||
<div key={index} className="flex items-center justify-between h-7">
|
||||
<div key={index} className="flex items-center justify-between h-7 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 -mx-2 transition-colors">
|
||||
<div className="flex-1 truncate text-neutral-900 dark:text-white flex items-center gap-3">
|
||||
{item.icon && <span className="text-lg">{item.icon}</span>}
|
||||
<span className="truncate">{item.name === 'Unknown' ? 'Unknown' : item.name}</span>
|
||||
@@ -91,7 +91,7 @@ export default function TechSpecs({ browsers, os, devices, screenResolutions }:
|
||||
</div>
|
||||
))}
|
||||
{Array.from({ length: emptySlots }).map((_, i) => (
|
||||
<div key={`empty-${i}`} className="h-7" aria-hidden="true" />
|
||||
<div key={`empty-${i}`} className="h-7 px-2 -mx-2" aria-hidden="true" />
|
||||
))}
|
||||
</>
|
||||
) : (
|
||||
@@ -109,7 +109,7 @@ export default function TechSpecs({ browsers, os, devices, screenResolutions }:
|
||||
>
|
||||
<div className="space-y-3 max-h-[60vh] overflow-y-auto pr-2">
|
||||
{data.map((item, index) => (
|
||||
<div key={index} className="flex items-center justify-between py-1">
|
||||
<div key={index} className="flex items-center justify-between py-1 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 -mx-2 transition-colors">
|
||||
<div className="flex-1 truncate text-neutral-900 dark:text-white flex items-center gap-3">
|
||||
{item.icon && <span className="text-lg">{item.icon}</span>}
|
||||
<span className="truncate">{item.name === 'Unknown' ? 'Unknown' : item.name}</span>
|
||||
|
||||
Reference in New Issue
Block a user