| | |
| | | body:has(.echart-wrapper:has(+ .fullscreen-controls)) { |
| | | overflow: hidden; |
| | | } |
| | | |
| | | /* 彻底固定图表容器的高度 */ |
| | | [data-echarts-container="true"] { |
| | | height: 400px !important; |
| | | min-height: 400px !important; |
| | | width: 100%; |
| | | position: relative; |
| | | } |
| | | |
| | | /* 确保tooltip显示在适当位置 */ |
| | | .echarts-tooltip-wrap, |
| | | div[class*="echarts-tooltip"], |
| | | div[class*="tooltip"] { |
| | | z-index: 9999 !important; |
| | | top: auto !important; /* 防止固定在顶部 */ |
| | | transform: translateY(0) !important; /* 防止向上偏移 */ |
| | | max-width: 80vw !important; /* 限制最大宽度 */ |
| | | pointer-events: auto !important; |
| | | } |
| | | |
| | | /* 确保热力图tooltip在高风险区域显示时不会被导航栏遮挡 */ |
| | | body .ec-tooltip, |
| | | body .echarts-tooltip { |
| | | margin-top: 60px !important; /* 确保不会显示在导航栏之上 */ |
| | | } |