Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v11.0.x] Table Panel: Fix image disappearing when datalinks applied #86160

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 154868e from #84625


What is this feature?

When using the image cell with a datalink and hovering over the image the image would disappear because no absolute width or height is applied. This makes the link functionally have zero width and height making it so it's no displayed. This PR sets the height of the link to the height of the cell (minus 2px).

With old styles container width would be sufficient for this, but with height now changing with hover for text wrapping this no longer works in the intended way.

Why do we need this feature?

Prevents images from disappearing on hover.

Before:

Screen.Recording.2024-03-16.at.2.46.31.PM.mov

After:

Screen.Recording.2024-03-16.at.2.44.18.PM.mov

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

* Fix link image disappearing

* Prettier

* i18n

* Fix offset to compensate for padding

* Prettier

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
(cherry picked from commit 154868e)
@grafana-delivery-bot grafana-delivery-bot bot requested a review from a team as a code owner April 15, 2024 14:24
@grafana-delivery-bot grafana-delivery-bot bot requested review from codeincarnate and removed request for a team April 15, 2024 14:24
@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.0.x milestone Apr 15, 2024
@grafana-delivery-bot grafana-delivery-bot bot added add to changelog area/frontend area/panel/table backport A backport PR product-approved Pull requests that are approved by product/managers and are allowed to be backported labels Apr 15, 2024
Copy link
Contributor

@ashharrison90 ashharrison90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm bot 🤖

@ashharrison90 ashharrison90 merged commit 16695fe into v11.0.x Apr 15, 2024
22 checks passed
@ashharrison90 ashharrison90 deleted the backport-84625-to-v11.0.x branch April 15, 2024 14:42
@fabrizio-grafana fabrizio-grafana modified the milestones: 11.0.x, 11.0.0 May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/frontend area/panel/table backport A backport PR product-approved Pull requests that are approved by product/managers and are allowed to be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants