mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Fixed table action not appearing on cell hover (#18014)
refs https://github.com/TryGhost/Product/issues/3823
This commit is contained in:
parent
78e2cb0c28
commit
ba71d53e82
@ -36,8 +36,10 @@ const TableRow: React.FC<TableRowProps> = ({id, action, hideActions, className,
|
||||
<tr className={tableRowClasses} data-testid={testId} id={id} onClick={handleClick}>
|
||||
{children}
|
||||
{action &&
|
||||
<td className={`visible block px-6 py-3 text-center ${hideActions ? 'group-hover/table-row:visible md:invisible' : ''}`}>
|
||||
<td className={`px-6 py-3`}>
|
||||
<div className={`flex items-center justify-end ${hideActions ? 'invisible group-hover/table-row:visible' : ''}`}>
|
||||
{action}
|
||||
</div>
|
||||
</td>
|
||||
}
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user