diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-25 22:43:08 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-25 22:43:08 +0800 |
| commit | 151cb94d555c5a838e22acb69fe1a7638696c3b7 (patch) | |
| tree | 1b8007f516848fe4bdb93b049915b8635084dbc5 | |
| parent | 84bf9ce436e6339c5ee32d998636cc7ea80475cb (diff) | |
chore: better cal-heatmap style
- remove scroll bar
- adjust height
| -rw-r--r-- | layouts/partials/components/heatmap.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/components/heatmap.html b/layouts/partials/components/heatmap.html index cc737e10..f2058258 100644 --- a/layouts/partials/components/heatmap.html +++ b/layouts/partials/components/heatmap.html @@ -7,10 +7,10 @@ .ch-container{display:block}.ch-container,.ch-domain,.ch-domain-container,.ch-domain-container-animation-wrapper{overflow:visible}.ch-domain-container.in-transition .ch-domain-container-animation-wrapper{overflow:hidden}.ch-domain-bg{fill:transparent}.ch-domain-text{fill:currentColor;font-size:10px}.ch-subdomain{overflow:visible}.ch-subdomain-bg{fill:#ededed}.ch-subdomain-bg.highlight{stroke:#444;stroke-width:1px}.ch-subdomain-bg:hover{stroke:#000;stroke-width:1px}.ch-subdomain-text{font-size:8px;pointer-events:none}[data-theme=dark] .ch-subdomain-bg{fill:#2d333b}[data-theme=dark] .ch-subdomain-bg.highlight{stroke:#768390}[data-theme=dark] .ch-subdomain-bg:hover{stroke:#636e7b}#ch-plugin-legend>svg{background:transparent;color:currentColor}#ch-tooltip{background:#222;border-radius:2px;box-shadow:2px 2px 2px rgba(0,0,0,.2);box-sizing:border-box;color:#bbb;display:none;font-size:12px;line-height:1.4;padding:5px 10px;text-align:center}#ch-tooltip[data-show]{display:block}#ch-tooltip-arrow,#ch-tooltip-arrow:before{background:inherit;height:8px;position:absolute;width:8px}#ch-tooltip-arrow{visibility:hidden}#ch-tooltip-arrow:before{content:"";transform:rotate(45deg);visibility:visible}#ch-tooltip[data-popper-placement^=top]>#ch-tooltip-arrow{bottom:-4px;margin-left:-4px}#ch-tooltip[data-popper-placement^=bottom]>#ch-tooltip-arrow{margin-left:-4px;top:-4px}#ch-tooltip[data-popper-placement^=left]>#ch-tooltip-arrow{right:-4px}#ch-tooltip[data-popper-placement^=right]>#ch-tooltip-arrow{left:-4px}#ch-tooltip[data-theme=dark]{background:#636e7b;color:#cdd9e5} #cal-heatmap-container { display: flex; width: 100%; - overflow-x: auto; + overflow: hidden; justify-content: flex-end; margin: 1rem 0; - min-height: 150px; /* Give it some height before loading */ + min-height: 110px; /* Give it some height before loading */ } </style> @@ -34,7 +34,7 @@ function loadHeatmap() { // Calculate the date 6 months ago const startDate = new Date(); - startDate.setMonth(startDate.getMonth() - 12); + startDate.setMonth(startDate.getMonth() - 11); // Render the heatmap cal.paint({ |
