mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-11 17:48:44 -05:00
fix(gantt): clamp collapse chevron x position to prevent negative offset
This commit is contained in:
@@ -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 || '' })
|
||||
|
||||
Reference in New Issue
Block a user