-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix heatmap rendering in Chrome and Safari #13645
Conversation
Apparently SVG inside flexbox renders slightly different across browsers where Firefox would stretch to fit the parent while Chrome and safari wouldn't. Stretch the SVG to the width of the parent for consistent rendering. Also did a few minor tweaks on the min-height of the box so it takes up less space on smaller responsive breakpoints. Fixes: go-gitea#13634 Fixes: go-gitea#13637
Must be cached. Try clearing browser cache or start with |
alright now this works for me fine and also scales well just as presented. what is the advantage of hardocoding more values, though, e.g. compared to #13637 ? |
The static |
alright.. |
.total-contributions { | ||
font-size: 10px; | ||
left: 17px; | ||
bottom: -2px; | ||
bottom: -4px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
liked this better aligned with inline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is absolutely positioned, display: inline
on the parent wouldn't do anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is absolutely positioned,
display: inline
on the parent wouldn't do anything.
not here but on the user-heatmap
div and I think it's more elegant that way.
then this would not be needed.
but if it works, it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works fine for me.
Not sure why you persist on inline, it's just not meant for non-text content and thing like
I can't reproduce that one and it's certainly not related here. |
see my comment above.
no, it's a separate issue but I think may also be affecting the feed column, of which heatmap is a part. |
This should be good to go. |
🚀 |
Apparently SVG inside flexbox renders slightly different across browsers where Firefox would stretch to fit the parent while Chrome and Safari wouldn't. Stretch the SVG to the width of the parent for consistent rendering.
Also did a few minor tweaks on the min-height of the box so it takes up less space on smaller responsive breakpoints.
Fixes: #13634
Fixes: #13637