chore(gantt): run linter
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
7cfc5a6519
commit
705e1ebc5e
|
@ -95,13 +95,13 @@ const dateToDate = computed(() => new Date(new Date(filters.value.dateTo).setHou
|
|||
const DAY_WIDTH_PIXELS = 30
|
||||
const ganttChartWidth = computed(() => {
|
||||
|
||||
let ganttContainerReference = ganttContainer?.value
|
||||
const ganttContainerReference = ganttContainer?.value
|
||||
const ganttContainerWidth = ganttContainerReference ? (ganttContainerReference['clientWidth'] ?? 0) : 0
|
||||
|
||||
const dateDiff = Math.floor((dateToDate.value.valueOf() - dateFromDate.value.valueOf()) / MILLISECONDS_A_DAY)
|
||||
const calculatedWidth = dateDiff * DAY_WIDTH_PIXELS
|
||||
|
||||
return (calculatedWidth > ganttContainerWidth) ? calculatedWidth + "px" : "100%"
|
||||
return (calculatedWidth > ganttContainerWidth) ? calculatedWidth + 'px' : '100%'
|
||||
|
||||
})
|
||||
|
||||
|
|
Reference in New Issue
Block a user