0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Added padding and margin for hover state

This commit is contained in:
Daniël van der Winden 2024-10-10 10:04:45 +01:00
parent 6701c5ec95
commit 5a5c978ba7

View file

@ -43,7 +43,7 @@ const ListItem: React.FC<ListItemProps> = ({
const listItemClasses = clsx(
'group/list-item flex items-center justify-between',
bgOnHover && 'hover:bg-grey-50 dark:hover:bg-grey-950',
bgOnHover && '-mx-6 rounded-lg px-6 hover:bg-grey-50 dark:hover:bg-grey-950',
separator ? 'border-b border-grey-100 last-of-type:border-b-transparent hover:border-grey-200 dark:border-grey-900 dark:hover:border-grey-800' : 'border-y border-transparent hover:border-grey-200 first-of-type:hover:border-t-transparent dark:hover:border-grey-800',
className
);