Contribution heatmap improvements#35876
Conversation
silverwind
commented
Nov 6, 2025
- Set a fixed height on the element, preventing the content after the element from shifting on page load. This uses CSS container query length units as I saw no other way because of the non-linear scaling of the element.
- Move the "total-contributions" text into the existing vue slot, eliminating the need for absolute positioning.
delvh
left a comment
There was a problem hiding this comment.
LGTM if that CSS shorthand is already widely supported
|
It's using Edit: actually it will probably fail to parse |
|
I've added a fallback for browsers without support for container queries and tested it in Palemoon. |
|
Please address #35876 (comment) before merging. I don't want to keep cleaning up various pollution and style conflicts in the future. |
|
That's impossible to address as outlined above. The container is set on the closest possible parent nodes. |
|
The only thing that may be possible is to change the user page to use |
|
Hmm, found something new, there is already a container I think I can try to make some changes to reuse it |
|
Dedicated container added. |
|
You can do your changes now. |
a7713a9 to
566e13e
Compare
|
I would not do |
That's just a debug step (you can pretend that not seeing it 🤣 ), I have correctly applied your approach. |
a03e4c1 to
cc1ba8f
Compare
|
Changes look good. Let's also backport this as a minor enhancement. |
1. Set a fixed height on the element, preventing the content after the element from shifting on page load. This uses CSS [container query length units](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries#container_query_length_units) as I saw no other way because of the non-linear scaling of the element. 2. Move the "total-contributions" text into the existing vue slot, eliminating the need for absolute positioning. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Backport #35876 by @silverwind 1. Set a fixed height on the element, preventing the content after the element from shifting on page load. This uses CSS [container query length units](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries#container_query_length_units) as I saw no other way because of the non-linear scaling of the element. 2. Move the "total-contributions" text into the existing vue slot, eliminating the need for absolute positioning. Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* giteaofficial/main: Allow to display embed images/pdfs when SERVE_DIRECT was enabled on MinIO storage (go-gitea#35882) Add proper page title for project pages (go-gitea#35773) Use correct form field for allowed force push users in branch protection API (go-gitea#35894) Fix team member access check (go-gitea#35899) Add ability for local makefile with personal customizations that wouldnt affect remote repo (go-gitea#35836) Add toolchain directive to go.mod (go-gitea#35901) Display source code downloads last for release attachments (go-gitea#35897) Fix conda null depend issue (go-gitea#35900) Fix avatar upload error handling (go-gitea#35887) Move `gitea-vet` to use `go tool` (go-gitea#35878) Contribution heatmap improvements (go-gitea#35876) Update to go 1.25.4 (go-gitea#35877)