From bde2bc77099b616021bc54441e246bde71317223 Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Wed, 25 May 2016 19:28:28 -0700 Subject: [PATCH 1/3] [Frontend] Bottom of holder divs adjusted open #913 --- platform/features/timeline/res/sass/_timelines.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/features/timeline/res/sass/_timelines.scss b/platform/features/timeline/res/sass/_timelines.scss index 251008a64c..006fccfbd9 100644 --- a/platform/features/timeline/res/sass/_timelines.scss +++ b/platform/features/timeline/res/sass/_timelines.scss @@ -52,6 +52,9 @@ // Tree area with item title right: auto; // Set this to auto and uncomment width below when additional tabular columns are added width: $timelineTabularTitleW; + .l-swimlanes-holder { + bottom: $scrollbarTrackSize; + } } &.l-tabular-r { // Start, end, duration, activity modes columns @@ -67,6 +70,7 @@ &.l-timeline-gantt { .l-swimlanes-holder { @include scrollV(scroll); + bottom: $scrollbarTrackSize; } } &.l-timeline-resource-legend { From c557fb6cd5a2c2d0a48df4517445fe93159c623a Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Wed, 25 May 2016 19:39:56 -0700 Subject: [PATCH 2/3] [Frontend] Cursor properties modified open #768 --- platform/features/timeline/res/sass/_activities.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/features/timeline/res/sass/_activities.scss b/platform/features/timeline/res/sass/_activities.scss index 5e729432f7..268c602ae8 100644 --- a/platform/features/timeline/res/sass/_activities.scss +++ b/platform/features/timeline/res/sass/_activities.scss @@ -59,7 +59,7 @@ .handle { cursor: col-resize; &.mid { - cursor: move; + cursor: ew-resize; } } } \ No newline at end of file From 33c208d8fe7cb2589b59f3a1e20bb57809d5730a Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Wed, 25 May 2016 20:52:36 -0700 Subject: [PATCH 3/3] [Frontend] Timeline Gantt bar mods to allow small min-width open #965 - CSS adjusted to handle min-width of 2px and better approach to ellipsizing text; - Angular ng-class added to hide icon and title if width less than a value; - Rounded corners on bars removed; --- .../timeline/res/sass/_activities.scss | 18 +++++++++++++++--- .../timeline/res/sass/_timeline-thematic.scss | 10 ---------- .../timeline/res/templates/activity-gantt.html | 1 + 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/platform/features/timeline/res/sass/_activities.scss b/platform/features/timeline/res/sass/_activities.scss index 268c602ae8..cfe69d6d01 100644 --- a/platform/features/timeline/res/sass/_activities.scss +++ b/platform/features/timeline/res/sass/_activities.scss @@ -1,16 +1,22 @@ .l-timeline-gantt { + min-width: 2px; + overflow: hidden; position: absolute; top: $timelineSwimlaneGanttVM; bottom: $timelineSwimlaneGanttVM; .bar { @include ellipsize(); height: $activityBarH; - line-height: $activityBarH + 2; + line-height: $activityBarH; padding: 0 $interiorMargin; span { - display: inline; + $iconW: 20px; + @include absPosDefault(); + display: block; &.s-activity-type { + right: auto; width: $iconW; + text-align: center; &.timeline { &:before { content:"S"; @@ -23,7 +29,9 @@ } } &.s-title { - text-shadow: rgba(black, 0.1) 0 1px 2px; + overflow: hidden; + text-overflow: ellipsis; + left: $iconW; } &.duration { left: auto; @@ -52,6 +60,10 @@ } } } + &.sm .bar span { + // Hide icon and label if width is too small + display: none; + } } .edit-mode .s-timeline-gantt, diff --git a/platform/features/timeline/res/sass/_timeline-thematic.scss b/platform/features/timeline/res/sass/_timeline-thematic.scss index 967a07462f..d4ab58b6e7 100644 --- a/platform/features/timeline/res/sass/_timeline-thematic.scss +++ b/platform/features/timeline/res/sass/_timeline-thematic.scss @@ -32,20 +32,10 @@ } .s-timeline-gantt { - $br: $controlCr; .bar { color: $colorGanttBarFg; @include activityBg($colorGanttBarBg); - border-radius: $br; box-shadow: $shdwGanttBar; - &.expanded { - @include border-top-radius($br); - @include border-bottom-radius(0); - } - &.leaf { - @include border-top-radius(0); - @include border-bottom-radius($br); - } .s-toggle { color: $colorGanttToggle; } diff --git a/platform/features/timeline/res/templates/activity-gantt.html b/platform/features/timeline/res/templates/activity-gantt.html index 69d1d8984a..1615431e91 100644 --- a/platform/features/timeline/res/templates/activity-gantt.html +++ b/platform/features/timeline/res/templates/activity-gantt.html @@ -20,6 +20,7 @@ at runtime from the About dialog for additional information. -->