mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
Fixed list item clickarea bug in AdminX
refs. https://github.com/TryGhost/Team/issues/3318
This commit is contained in:
parent
7d4a09a6bb
commit
8d485fe1b7
@ -24,9 +24,9 @@ const ListItem: React.FC<ListItemProps> = ({id, title, detail, action, hideActio
|
||||
|
||||
return (
|
||||
<div className={`group flex items-center justify-between hover:bg-gradient-to-r hover:from-white hover:to-grey-50 ${separator ? 'border-b border-grey-100 last-of-type:border-none' : ''}`}>
|
||||
<div className='flex items-center gap-3'>
|
||||
<div className={`flex grow items-center gap-3 ${onClick && 'cursor-pointer'}`} onClick={handleClick}>
|
||||
{avatar && avatar}
|
||||
<div className={`flex grow flex-col pr-6 ${separator ? 'py-3' : 'py-2'} ${onClick && 'cursor-pointer'}`} id={id} onClick={handleClick}>
|
||||
<div className={`flex grow flex-col pr-6 ${separator ? 'py-3' : 'py-2'}`} id={id}>
|
||||
<span>{title}</span>
|
||||
{detail && <span className='text-xs text-grey-700'>{detail}</span>}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user