fix(dees-statsgrid): center CPU core bars when they occupy less than ~66% of the tile and switch bar fills to absolute positioning for correct alignment and smoother transitions
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 2026-01-12 - 3.35.1 - fix(dees-statsgrid)
|
||||
center CPU core bars when they occupy less than ~66% of the tile and switch bar fills to absolute positioning for correct alignment and smoother transitions
|
||||
|
||||
- Add .cpu-cores-bars.centered CSS rule to horizontally center the bars when appropriate.
|
||||
- Compute shouldCenter by estimating max bars width (cores * 24px + gaps) and comparing to estimated tile content width (accounts for columnSpan, minTileWidth, gap and ~32px padding), using a 66.6% threshold.
|
||||
- Change .cpu-core-bar-container to position: relative and .cpu-core-bar-fill to position: absolute (bottom:0; left:0; right:0) to ensure correct vertical alignment and smoother height transitions.
|
||||
|
||||
## 2026-01-12 - 3.35.0 - feat(dees-statsgrid)
|
||||
add cpuCores tile type with column spanning, rendering, demo and docs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user