kimai-plugin-heatmap/Resources/public/heatmap.css
Christopher Mühl c90ad494b7
fix(04): tooltip and dropdown overflow clipping
Tooltip uses fixed positioning on document.body to escape overflow
contexts. Removed overflow-x:auto from container and SVG area that
clipped tooltip top and dropdown focus ring.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 15:47:39 +02:00

57 lines
1,000 B
CSS

.heatmap-tooltip {
position: absolute;
padding: 6px 10px;
background: var(--tblr-bg-surface);
border: 1px solid var(--tblr-border-color);
border-radius: 4px;
font-size: 0.8125rem;
color: var(--tblr-body-color);
pointer-events: none;
z-index: 1000;
white-space: nowrap;
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.heatmap-cell {
rx: 2;
ry: 2;
cursor: pointer;
transition: opacity 0.1s ease;
pointer-events: fill;
}
.heatmap-cell:hover {
opacity: 0.75;
}
.heatmap-empty {
fill: var(--tblr-bg-surface-secondary);
}
.heatmap-label {
fill: var(--tblr-body-color);
font-size: 10px;
font-family: var(--tblr-font-sans-serif);
}
/* Layout: heatmap + filter side by side */
.heatmap-wrapper {
display: flex;
align-items: flex-start;
gap: 16px;
}
.heatmap-wrapper .heatmap-svg-area {
flex: 1;
min-width: 0;
}
.heatmap-wrapper .heatmap-filter {
flex-shrink: 0;
padding-top: 20px;
}
.heatmap-filter select {
min-width: 140px;
max-width: 200px;
}