-
Notifications
You must be signed in to change notification settings - Fork 27
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
Buttons.js set body white-space to nowrap and it breaks Firefox #24
Comments
Is this the little # of github stars widget? I'm sure we could find a better one than the "official" github one. |
This might be nice, it uses the user's IP to talk to the GitHub rate-limited API to get the stars. We could rebuilt the design statically and just load in the number. And if the rate limit is exceeded, it's just for that user. I'll spike that and if it looks okay will suggest we migrate to it. |
Woot I just noticed Zeit covered the surprise charge, I'm super duper glad for that! 🎉 😃 |
HA! HTMLElement.prototype.attachShadow) It's the same issue as #19. They're attempting to use the Shadow DOM. |
Yup. #19 works for me as it probably just doesn't pull any styles and the rest of the shadow DOM features works in latest FF. Maybe it can be worked around by |
@TomasHubelbauer Let's build our own Github Star Count! I've simplified and modernized githubStars = async (repo) =>
(await fetch(`https://api.github.com/repos/${repo}',
{headers:{accept:'application/vnd.github.v3+json'}}).then(x => x.json())).stargazers_count |
LOL we don't even need to |
Sure I'll do that in a separate PR and fix the overflow with the trick above first. |
🤦♂️ (No need to fix this since we are going to be replacing GitHub buttons… Don't mind me…) |
I mean... we could try to fix Github's CSS. But they have all the resources of Microsoft and they still make a bloated |
It's an unofficial 3rd party thingy, not GitHub's own CSS (but that only reinforces the point about it containing a tracker for all we know). |
Docusaurus uses React, so if you know React you could make a little React component. Or we could just file the issue on ... wait it is? (double checks) oh mtsdfkljer. You're right LOL. It's just a github.IO page |
Well heck, let's just open an issue there |
It looks like the Shadow DOM thing was added less than 24 hours ago. |
So I propose we sit on our butt for a day and see if somebody else will fix this problem. 😁 hint hint button breaker |
Unless you feel like making your own. 👌 |
Eh... IDK it is really broken. 🤕 |
Give me 5 to learn Docusaurus and add our own counter - still good you filed the issue with them though you'll save other sites! |
👍 Alright, I'm hands off! If it doesn't work out, you can merge the backup plan. |
On top of that the GitHub button ends up being visually broken too in FF.
I'll investigate if this is a (known?) issue with them or if we can work around it.
The text was updated successfully, but these errors were encountered: