',
// Categories color stripes
- '
',
+ ' ng-style="{ right: ($index * 3) + \'px\' }">
',
' {{ block.component.summary }}',
'
',
// Component is reccurent
diff --git a/UI/WebServerResources/js/Scheduler/sgCalendarDayBlockGhost.directive.js b/UI/WebServerResources/js/Scheduler/sgCalendarDayBlockGhost.directive.js
index 1972c28d0..10d6cf41d 100644
--- a/UI/WebServerResources/js/Scheduler/sgCalendarDayBlockGhost.directive.js
+++ b/UI/WebServerResources/js/Scheduler/sgCalendarDayBlockGhost.directive.js
@@ -23,9 +23,9 @@
'',
'
',
// Categories color stripes
- '
',
+ ' ng-style="{ right: ($index * 3) + \'px\' }">
',
'
{{ block.component.summary }}',
' ',
// Component is reccurent
diff --git a/UI/WebServerResources/scss/core/base_styles/_base_style.scss b/UI/WebServerResources/scss/core/base_styles/_base_style.scss
index 348ee50fe..345c175d9 100644
--- a/UI/WebServerResources/scss/core/base_styles/_base_style.scss
+++ b/UI/WebServerResources/scss/core/base_styles/_base_style.scss
@@ -26,3 +26,10 @@
//optical adjustement
transform: translateY(-10%);
}
+
+.sg-category {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ width: 3px;
+}
\ No newline at end of file
diff --git a/UI/WebServerResources/scss/views/SchedulerUI.scss b/UI/WebServerResources/scss/views/SchedulerUI.scss
index 4aa351ed0..159135aec 100644
--- a/UI/WebServerResources/scss/views/SchedulerUI.scss
+++ b/UI/WebServerResources/scss/views/SchedulerUI.scss
@@ -1,6 +1,7 @@
/// SchedulerUI.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
$hours_margin: 50px;
$block_margin: 2%; // See sgCalendarDayBlock.directive.js
+$block_radius: 3px;
/**
* Affected templates:
@@ -117,14 +118,14 @@ $block_margin: 2%; // See sgCalendarDayBlock.directive.js
&--first {
margin-left: $block_margin;
padding-left: 0;
- border-top-left-radius: 3px;
- border-bottom-left-radius: 3px;
+ border-top-left-radius: $block_radius;
+ border-bottom-left-radius: $block_radius;
}
&--last {
margin-right: $block_margin;
padding-right: 0;
- border-top-right-radius: 3px;
- border-bottom-right-radius: 3px;
+ border-top-right-radius: $block_radius;
+ border-bottom-right-radius: $block_radius;
}
}
}
@@ -210,7 +211,7 @@ $block_margin: 2%; // See sgCalendarDayBlock.directive.js
.sg-event {
font-size: $sg-font-size-2;
font-weight: $sg-font-medium;
- border-radius: 3px;
+ border-radius: $block_radius;
position: absolute;
left: 0;
right: 0;
@@ -259,14 +260,10 @@ $block_margin: 2%; // See sgCalendarDayBlock.directive.js
font-weight: $sg-font-light;
}
- .category {
- position: absolute;
- top: 0;
- bottom: 0;
- width: 10%;
+ .sg-category {
&:first-child {
- border-top-right-radius: 3px;
- border-bottom-right-radius: 3px;
+ border-top-right-radius: $block_radius;
+ border-bottom-right-radius: $block_radius;
}
}