diff --git a/e2e/tests/functional/planning/ganttChart.e2e.spec.js b/e2e/tests/functional/planning/ganttChart.e2e.spec.js index 554f81d1c6..a32dee1691 100644 --- a/e2e/tests/functional/planning/ganttChart.e2e.spec.js +++ b/e2e/tests/functional/planning/ganttChart.e2e.spec.js @@ -126,7 +126,7 @@ test.describe('Gantt Chart', () => { await page.goto(ganttChart.url); // Assert that the Plan's status is displayed as draft - expect(await page.locator('.u-contents.c-swimlane.is-status--draft').count()).toBe( + expect(await page.locator('.c-swimlane.is-status--draft').count()).toBe( Object.keys(testPlan1).length ); }); diff --git a/src/plugins/events/components/events-view.scss b/src/plugins/events/components/events-view.scss index 42876604a0..5927497877 100644 --- a/src/plugins/events/components/events-view.scss +++ b/src/plugins/events/components/events-view.scss @@ -1,34 +1,51 @@ .c-events-tsv { - div.c-events-tsv__event-wrapper { - cursor: pointer; - position: absolute; - top: 0; - display: flex; - z-index: 1; - margin-top: 5px; - &:hover { - z-index: 2; - - [class*='__event-handle'] { - background-color: $colorBodyFg; + overflow: hidden; + + &__event-wrapper { + // Wraps an individual event line + // Also holds the hover flyout element + $c: $colorEventLine; + $lineW: 2px; + $hitAreaW: 6px; + $m: $interiorMargin; + background-color: rgba($c, 0.6); + cursor: pointer; + position: absolute; + display: flex; + top: $m; bottom: $m; + width: $lineW; + z-index: 1; + + &:before { + // Extend hit area + content: ''; + display: block; + position: absolute; + top: 0; bottom: 0; + z-index: 0; + width: $hitAreaW; + transform: translateX(($hitAreaW - $lineW) * -0.5); + } + + &:hover { + z-index: 2; + background-color: $c; + + &:before { + background-color: rgba($c, 0.4); + } } - } } - + &__no-items { - fill: $colorBodyFg !important; + fill: $colorBodyFg !important; } - - &__event-handle { - background-color: rgba($colorBodyFg, 0.5); - } - } - - .c-events-canvas { - pointer-events: auto; // This allows the event element to receive a browser-level context click +} + +.c-events-canvas { + pointer-events: auto; position: absolute; left: 0; top: 0; z-index: 2; - } - \ No newline at end of file +} diff --git a/src/plugins/timeline/ExtendedLinesOverlay.vue b/src/plugins/timeline/ExtendedLinesOverlay.vue index cfd8abc2a6..771e42bcd5 100644 --- a/src/plugins/timeline/ExtendedLinesOverlay.vue +++ b/src/plugins/timeline/ExtendedLinesOverlay.vue @@ -19,15 +19,18 @@ this source code distribution or the Licensing information page available at runtime from the About dialog for additional information. --> -