mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-30 08:25:58 -05:00
fix(gantt): clamp collapse chevron x position to prevent negative offset
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<g
|
<g
|
||||||
v-if="isParent && bars[0]"
|
v-if="isParent && bars[0]"
|
||||||
class="gantt-collapse-toggle"
|
class="gantt-collapse-toggle"
|
||||||
:transform="`translate(${getBarX(bars[0]) - 14}, 14)`"
|
:transform="`translate(${Math.max(0, getBarX(bars[0]) - 14)}, 14)`"
|
||||||
role="button"
|
role="button"
|
||||||
:aria-label="isCollapsed
|
:aria-label="isCollapsed
|
||||||
? $t('project.gantt.expandGroup', { task: bars[0]?.meta?.label || '' })
|
? $t('project.gantt.expandGroup', { task: bars[0]?.meta?.label || '' })
|
||||||
|
|||||||
Reference in New Issue
Block a user