From f1ab9edf29216dfccfd21cd609b84a684ea391a0 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 2 Mar 2026 13:11:58 +0100 Subject: [PATCH] fix(gantt): move parent diamonds outward with stroke and remove hover effect --- frontend/src/components/gantt/GanttRowBars.vue | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/gantt/GanttRowBars.vue b/frontend/src/components/gantt/GanttRowBars.vue index 28f3a136b..3fb9bf22b 100644 --- a/frontend/src/components/gantt/GanttRowBars.vue +++ b/frontend/src/components/gantt/GanttRowBars.vue @@ -129,12 +129,16 @@ @@ -323,13 +327,13 @@ const getBarTextX = computed(() => (bar: GanttBarModel) => { const DIAMOND_SIZE = 5 function getLeftDiamondPoints(bar: GanttBarModel): string { - const x = getBarX.value(bar) + const x = getBarX.value(bar) - DIAMOND_SIZE const cy = 20 // vertical center of the bar return `${x},${cy} ${x + DIAMOND_SIZE},${cy - DIAMOND_SIZE} ${x + DIAMOND_SIZE * 2},${cy} ${x + DIAMOND_SIZE},${cy + DIAMOND_SIZE}` } function getRightDiamondPoints(bar: GanttBarModel): string { - const x = getBarX.value(bar) + getBarWidth.value(bar) + const x = getBarX.value(bar) + getBarWidth.value(bar) + DIAMOND_SIZE const cy = 20 return `${x - DIAMOND_SIZE * 2},${cy} ${x - DIAMOND_SIZE},${cy - DIAMOND_SIZE} ${x},${cy} ${x - DIAMOND_SIZE},${cy + DIAMOND_SIZE}` } @@ -483,14 +487,6 @@ function startResize(bar: GanttBarModel, edge: 'start' | 'end', event: PointerEv .gantt-parent-bar { cursor: grab; pointer-events: all; - - &:hover { - opacity: 0.8; - } - - &:active { - cursor: grabbing; - } } :deep(.gantt-resize-handle) {