Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

display hover effect on rows

Blue Mousee03885b96a4a
diff --git a/web/app/pages/Project/View/Panels.tsx b/web/app/pages/Project/View/Panels.tsx
index 29c2fa4d6..793b92028 100644
--- a/web/app/pages/Project/View/Panels.tsx
+++ b/web/app/pages/Project/View/Panels.tsx
@@ -1794,7 +1794,10 @@ const Panel = ({
return (
<div key={`${id}-${entryName}-${Object.values(rest).join('-')}`} className='space-y-0.5'>
- <div className='relative flex items-center justify-between rounded-sm px-1 py-1.5 dark:text-gray-50'>
+ <div className={cx('relative flex items-center justify-between rounded-sm px-1 py-1.5 dark:text-gray-50', {
+ 'group hover:bg-gray-50 hover:dark:bg-slate-800': !hideFilters && !dataLoading && (link || hasVersionsForItem),
+ 'cursor-wait': dataLoading,
+ })}>
<div
className='absolute inset-0 rounded-sm bg-blue-50 dark:bg-blue-900/10'
style={{ width: `${perc}%` }}
@@ -1823,8 +1826,9 @@ const Panel = ({
as={link ? 'Link' : 'div'}
to={link}
className={cx('flex min-w-0 flex-1 items-center', {
- 'group cursor-pointer': !hideFilters && !dataLoading,
+ 'cursor-pointer': !hideFilters && !dataLoading && link,
'cursor-wait': dataLoading,
+ 'ml-5': !hasVersionsForItem, // Add margin when no chevron is present
})}
>
{linkContent ? (