mirror of
https://github.com/grafana/grafana.git
synced 2026-08-26 21:37:31 -05:00
Table Panel: Fix Image hover without datalinks (#89751)
* Fix image hover * Prettier * Fix height offset
This commit is contained in:
@@ -16,7 +16,14 @@ export const ImageCell = (props: TableCellProps) => {
|
||||
|
||||
return (
|
||||
<div {...cellProps} className={tableStyles.cellContainer}>
|
||||
{!hasLinks && <img src={displayValue.text} className={tableStyles.imageCell} alt="" />}
|
||||
{!hasLinks && (
|
||||
<img
|
||||
style={{ height: tableStyles.cellHeight - DATALINKS_HEIGHT_OFFSET, width: 'auto' }}
|
||||
src={displayValue.text}
|
||||
className={tableStyles.imageCell}
|
||||
alt=""
|
||||
/>
|
||||
)}
|
||||
{hasLinks && (
|
||||
<DataLinksContextMenu
|
||||
style={{ height: tableStyles.cellHeight - DATALINKS_HEIGHT_OFFSET, width: 'auto' }}
|
||||
|
||||
Reference in New Issue
Block a user