gifs-for-github icon indicating copy to clipboard operation
gifs-for-github copied to clipboard

Rendering is off in PR reviews

Open oscarlofwenhamn opened this issue 1 year ago • 7 comments

When trying to add a gif to a PR review, the following is rendered:

Initial state: image

After clicking GIF button: image

Browser version: Version 120.0.6099.199 (Official Build) (arm64) Extension version: 24.1.6.1944

Possibly related to the same underlying problem as #68?

oscarlofwenhamn avatar Jan 08 '24 13:01 oscarlofwenhamn

Hey, thanks for submitting an issue!

I can't seem to reproduce this unfortunately, but I have a hunch, and made a PR that should hopefully fix this for you here: https://github.com/N1ck/gifs-for-github/pull/71

I have submitted the updated extension for review, it should be version number 24.1.8 when it's active. If you could try again when it's updated and let me know that would be great.

N1ck avatar Jan 08 '24 21:01 N1ck

Thanks for the quick and friendly response!

It's still broken in my end unfortunately (verified the version number as well as re-installed the extension). Works as expected for gifs in regular comments, but for PR reviews it looks as pictured above. Strangely enough, in PR comments it works as expected, only when adding the final verdict things are off.

I noticed similar behaviour (in regular Issue comments, for example) when narrowing the screen to <1112 pixels, i.e. when the GIF-button gets out of bounds, maybe that's easier to reproduce?

Width = 1112px image

Width < 1112px (expanded) image

Width < 1112px (minimized) image

No sweat if this isn't a prioritised bug, workarounds are available after all (e.g. finding the perfect gif in a regular comment and then copying the link), just happy to report a finding for my legitimately no. 1 most used Chrome extension. 👏

oscarlofwenhamn avatar Jan 09 '24 08:01 oscarlofwenhamn

For me it is not fixed on 24.1.8 regardless of the screen width. It is worth noting that I'm also using Refined Github extension, but it is not fixed even if I disable the extension.

Refined Github on: image

Refined Github off, default state: image

Refined Github off, opened state: image

miluoshi avatar Jan 10 '24 10:01 miluoshi

I've hit this too, but can work around it if I increase the vertical height of the comment textarea using the resize handle. Not sure why that is relevant though

nikolaik avatar Jan 15 '24 14:01 nikolaik

Thank you for all of the screenshots and helping debug 🎉

Sorry I haven't had a lot of time to look at this, after further digging I was finally able to reproduce it.

It wasn't happening for me because I had my scroll settings set to: image

But when changing it to "Always" I could reliably replicate it.

I think I have a fix now which should be in version 24.1.16

N1ck avatar Jan 16 '24 22:01 N1ck

GitHub has made another change to their layout which has caused it to break again 😭 I have already fixed it but have to wait for another approval before it's live.

N1ck avatar Jan 17 '24 23:01 N1ck

oscarlofwenhamn avatar Jan 18 '24 08:01 oscarlofwenhamn

The latest version 24.1.18 should resolve this issue. Sorry it took so long, it took over 2 days to be reviewed 😢

N1ck avatar Jan 21 '24 08:01 N1ck

Confirmed! image

oscarlofwenhamn avatar Jan 22 '24 10:01 oscarlofwenhamn

nikolaik avatar Jan 22 '24 10:01 nikolaik