diff --git a/frontend/src/components/gantt/GanttChart.vue b/frontend/src/components/gantt/GanttChart.vue index 99a39fa16..b6714a353 100644 --- a/frontend/src/components/gantt/GanttChart.vue +++ b/frontend/src/components/gantt/GanttChart.vue @@ -31,44 +31,46 @@ @enterPressed="handleEnterPressed" > @@ -101,16 +103,13 @@ import Loading from '@/components/misc/Loading.vue' import {MILLISECONDS_A_DAY} from '@/constants/date' import {roundToNaturalDayBoundary} from '@/helpers/time/roundToNaturalDayBoundary' -const props = withDefaults(defineProps<{ +const props = defineProps<{ isLoading: boolean, filters: GanttFilters, tasks: Map, defaultTaskStartDate: DateISO defaultTaskEndDate: DateISO - showRelationArrows?: boolean -}>(), { - showRelationArrows: false, -}) +}>() const emit = defineEmits<{ (e: 'update:task', task: ITaskPartialWithId): void @@ -373,7 +372,6 @@ function computeBarWidth(bar: GanttBarModel): number { // Compute relation arrows const relationArrows = computed(() => { - if (!props.showRelationArrows) return [] return buildRelationArrows(tasks.value, barPositions.value, hiddenToAncestor.value) }) @@ -683,6 +681,10 @@ onUnmounted(() => { position: relative; } +.gantt-rows-container { + position: relative; +} + .gantt-rows { position: relative; z-index: 2; diff --git a/frontend/src/components/project/views/ProjectGantt.vue b/frontend/src/components/project/views/ProjectGantt.vue index 5c37f6f12..dc613208a 100644 --- a/frontend/src/components/project/views/ProjectGantt.vue +++ b/frontend/src/components/project/views/ProjectGantt.vue @@ -38,12 +38,6 @@ > {{ $t('task.show.noDates') }} - - {{ $t('project.gantt.toggleRelationArrows') }} - @@ -59,7 +53,6 @@ :is-loading="isLoading" :default-task-start-date="defaultTaskStartDate" :default-task-end-date="defaultTaskEndDate" - :show-relation-arrows="showRelationArrows" @update:task="updateTask" />