fix(gantt): clamp collapse chevron x position to prevent negative offset

This commit is contained in:
kolaente
2026-03-02 13:44:13 +01:00
parent ca808c7a4f
commit aa6c3d85a7

View File

@@ -12,7 +12,7 @@
<g
v-if="isParent && bars[0]"
class="gantt-collapse-toggle"
:transform="`translate(${getBarX(bars[0]) - 14}, 14)`"
:transform="`translate(${Math.max(0, getBarX(bars[0]) - 14)}, 14)`"
role="button"
:aria-label="isCollapsed
? $t('project.gantt.expandGroup', { task: bars[0]?.meta?.label || '' })