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

[regression] PR scroll header breaks to multiple lines / overlaps content #2291

Closed
wearhere opened this issue Jul 31, 2019 · 16 comments
Closed

Comments

@wearhere
Copy link

wearhere commented Jul 31, 2019

#2202 appears to be happening again, alas.

With the latest Refined GitHub, 19.7.30:
image

Without:
image

These screenshots show a particular commit selected but I can confirm that the bug happens on the files tab (e.g. /pull/7418/files) too.

@sharkykh
Copy link
Contributor

Weird, I don't experience this.
Does anyone have a public PR where we can see it live?

@wearhere
Copy link
Author

wearhere commented Aug 1, 2019

@sharkykh, sure, happens to me here: https://github.com/mixmaxhq/custody/pull/79/files

image

I do see that it doesn’t happen for all PRs, like doesn't happen for https://github.com/mixmaxhq/custody/pull/78/files —maybe it depends on the length of the PR, that one's shorter.

@sharkykh
Copy link
Contributor

sharkykh commented Aug 1, 2019

I'm still not experiencing this even with your PR.
Maybe it's related to screen resolution or Windows' display scaling? I'm on 1920x1080 at 100% scaling.

@wearhere
Copy link
Author

wearhere commented Aug 1, 2019

Hm… I'm on Chrome 75.0.3770.142 on OS X 10.14.5, with my resolution at 1680x1050 and the webpage at 100% scaling. The problem also happens for me at 1920x1200.

@jerone
Copy link
Contributor

jerone commented Aug 1, 2019

Can you check the 24em is actually applied?

image

Any errors in the console?

@wearhere
Copy link
Author

wearhere commented Aug 1, 2019

Thanks for your help thus far folks.

The 24em does seem to be applied and it still breaks:
image

One error in the console:
image

@sharkykh
Copy link
Contributor

sharkykh commented Aug 1, 2019

Error is unrelated: #2292

@jerone
Copy link
Contributor

jerone commented Aug 1, 2019

The 24em does seem to be applied and it still breaks:

So, what is your magic number for the title?

And you are not zoomed-in?

@fregante
Copy link
Member

fregante commented Aug 1, 2019

Can confirm, Firefox/macOS and see the issue. 23em works, but the suggestions in the previous thread still apply (shorter button)

Alternatively we could use flexbox to ensure it works for every size, but last time I tried it wouldn't shrink due to the white-space: nowrap needed for the ellipsis. You're welcome to try

@wearhere
Copy link
Author

wearhere commented Aug 1, 2019

@jerone

The 24em does seem to be applied and it still breaks:

So, what is your magic number for the title?

Do you mean, what em causes the problem to go away? Seems like 23em works, like @fregante writes above.

And you are not zoomed-in?

No.

@fregante
Copy link
Member

fregante commented Aug 2, 2019

Additional button breaks it even more:

@fregante
Copy link
Member

fregante commented Aug 2, 2019

Again I'd suggest:

  • restoring the regular dropdown
  • dropping its "apply and reload" button so it requires one fewer click
  • perhaps opening the dropdown on hover

There's already a keyboard shortcut to toggle the whitespace.

I enjoy the diff buttons being easily accessible but I prefer a non-broken site. This feature has been causing the same issue for years

@nesl247
Copy link
Contributor

nesl247 commented Aug 21, 2019

Just ran into this myself. Is there a feature we can disable to fix this temporarily?

@kidonng
Copy link
Member

kidonng commented Aug 22, 2019

@nesl247 try disable faster-pr-diff-options feature

@felixfbecker
Copy link

See this all the time :/

image

@fregante
Copy link
Member

fregante commented Dec 6, 2019

I disabled this feature in PRs because its an ugly bug that many reported. Continue the discussion in #2597

@refined-github refined-github locked and limited conversation to collaborators Dec 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

7 participants