fix: heatmap overflow

This commit is contained in:
pa
2026-03-22 20:59:33 +09:00
parent 297e81f32c
commit 31e2d7da89
2 changed files with 7 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="flex flex-col" style="min-height: 200px">
<div class="flex min-w-0 flex-col overflow-x-hidden" style="min-height: 200px">
<div style="display: flex; align-items: center; justify-content: space-between">
<div style="display: flex; align-items: center">
<Button
@@ -62,6 +62,7 @@
<div
v-show="filteredEventCount > 0"
ref="activityChartRef"
class="min-w-0 overflow-hidden"
style="width: 100%; height: 240px"
@contextmenu.prevent="onChartRightClick" />
@@ -125,6 +126,7 @@
<div
v-show="hasOverlapData"
ref="overlapChartRef"
class="min-w-0 overflow-hidden"
style="width: 100%; height: 240px"
@contextmenu.prevent="onOverlapChartRightClick" />

View File

@@ -11,6 +11,7 @@ export function buildHeatmapOption({
}) {
return {
tooltip: {
confine: true,
position: 'top',
formatter: (params) => {
const [hour, dayIndex] = params.data;
@@ -68,8 +69,9 @@ export function buildHeatmapOption({
data,
emphasis: {
itemStyle: {
shadowBlur: 6,
shadowColor: 'rgba(0, 0, 0, 0.3)'
borderColor: isDarkMode ? 'hsl(220, 15%, 18%)' : 'hsl(210, 18%, 78%)',
borderWidth: 1.5,
opacity: 0.92
}
},
itemStyle: {