mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[task overview] task overlap
This commit is contained in:
1 parent
0c394fb513
commit
c1296abbdc
5 files changed
+35
-28
No files matched your search
@@ -219,8 +219,11 @@ export default {
|
||||
|
||||
eventStyles () {
|
||||
if (this.event.allDay || !this.vuecal.time || !this.event.endTimeMinutes || this.view.id === 'month' || this.allDay) return {}
|
||||
let width = 100 / Math.min(this.overlaps.length + 1, this.overlapsStreak)
|
||||
let left = (100 / (this.overlaps.length + 1)) * this.eventPosition
|
||||
// let width = 100 / Math.min(this.overlaps.length + 1, this.overlapsStreak)
|
||||
// let left = (100 - ((this.overlaps.length + 1) * 10 )) * this.eventPosition
|
||||
let width = 100 - (this.eventPosition * 10)
|
||||
let left = 10 * this.eventPosition / 2
|
||||
let zIdnex = (this.eventPosition + 1) * 10
|
||||
|
||||
if (this.vuecal.minEventWidth && width < this.vuecal.minEventWidth) {
|
||||
width = this.vuecal.minEventWidth
|
||||
@@ -230,6 +233,7 @@ export default {
|
||||
const { top, height } = this.eventDimensions
|
||||
|
||||
return {
|
||||
"z-index": `${zIdnex}`,
|
||||
top: `${top}px`,
|
||||
height: `${height}px`,
|
||||
width: `${width}%`,
|
||||
|
||||
Reference in new issue
Block a user