From 25a372e7257423ecce062c845331168dfbba6106 Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Wed, 12 Feb 2025 22:09:03 -0800 Subject: [PATCH] Changes for adjustable Time Strip view - WIP! - Moved many CSS defs from flexible-layout.scss into new mixin `resizeHandleStyle`. - Fixed bad `drap-orientation` arg in TimelineViewLayout.vue. - Styling for resize handles in Time Strip view. --- .../components/flexible-layout.scss | 35 ++------------ src/plugins/timeline/TimelineViewLayout.vue | 2 +- src/styles/_constants-espresso.scss | 5 +- src/styles/_controls.scss | 46 ++++++++++++++++++ src/ui/components/swim-lane/SwimLane.vue | 2 +- src/ui/components/swim-lane/swimlane.scss | 47 +++++++++++-------- 6 files changed, 79 insertions(+), 58 deletions(-) diff --git a/src/plugins/flexibleLayout/components/flexible-layout.scss b/src/plugins/flexibleLayout/components/flexible-layout.scss index 4b42e47b72..0cfe9ed97a 100644 --- a/src/plugins/flexibleLayout/components/flexible-layout.scss +++ b/src/plugins/flexibleLayout/components/flexible-layout.scss @@ -247,46 +247,17 @@ } &__resize-handle { - $size: 2px; + $size: 1px; $margin: 3px; $marginHov: 0; $grippyThickness: $size + 6; $grippyLen: $grippyThickness * 2; + @include resizeHandleStyle($size, $margin); + display: flex; flex-direction: column; flex: 0 0 ($margin * 2) + $size; - - &:before { - // The visible resize line - background-color: $editUIColor; - content: ''; - display: block; - flex: 1 1 auto; - min-height: $size; - min-width: $size; - } - - &.vertical { - padding: $margin $size; - &:hover { - cursor: row-resize; - } - } - - &.horizontal { - padding: $size $margin; - &:hover { - cursor: col-resize; - } - } - - &:hover { - &:before { - // The visible resize line - background-color: $editUIColorHov; - } - } } // Hide the resize-handles in first and last c-fl-frame elements diff --git a/src/plugins/timeline/TimelineViewLayout.vue b/src/plugins/timeline/TimelineViewLayout.vue index 68f56b9d26..0a9e95401c 100644 --- a/src/plugins/timeline/TimelineViewLayout.vue +++ b/src/plugins/timeline/TimelineViewLayout.vue @@ -50,7 +50,7 @@ -
+