初始化

This commit is contained in:
RiseForever
2026-08-13 00:26:08 +08:00
parent c382cd642a
commit 8ae7b2a60e
27 changed files with 1084 additions and 331 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ const totalWordsLabel = totalWords >= 10_000
const availableCellSize = (heatmapScroll.clientWidth - 3.25 * baseRootFontSize) / 53;
if (scale <= 1.01 || baseCellSize === 0) {
baseCellSize = Math.min(12, Math.max(8, availableCellSize));
baseCellSize = Math.max(8, availableCellSize);
}
heatmapGrid.style.setProperty('--heatmap-cell-size', `${baseCellSize * scale}px`);
heatmapViewport?.classList.toggle('has-overflow', heatmapGrid.getBoundingClientRect().width > heatmapScroll.clientWidth + 1);