From aa070fd67d697d3bbf0d14003983420eccbfd9fe Mon Sep 17 00:00:00 2001 From: Yana Yarovaya Date: Wed, 13 May 2020 10:48:18 +0300 Subject: [PATCH] Fix Scheduler shader position for small screen (T886366) (#13013) --- styles/widgets/base/scheduler.less | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/styles/widgets/base/scheduler.less b/styles/widgets/base/scheduler.less index a28e03c5cd17..2d9136c2eb27 100644 --- a/styles/widgets/base/scheduler.less +++ b/styles/widgets/base/scheduler.less @@ -598,7 +598,6 @@ } .dx-scheduler-date-time-shader-all-day { - margin-left: @SCHEDULER_LEFT_COLUMN_WIDTH; width: 100%; background-color: @SCHEDULER_TIME_INDICATOR_BACKGROUND_COLOR; position: absolute; @@ -656,8 +655,13 @@ } } - .dx-scheduler-date-time-shader { + .dx-scheduler-date-time-shader, + .dx-scheduler-date-time-shader-all-day { margin-left: @SCHEDULER_LEFT_COLUMN_WIDTH; + + .dx-scheduler-small & { + margin-left: -@SCHEDULER_LEFT_COLUMN_WIDTH * @SCHEDULER_SMALL_SIZE_FACTOR; + } } .dx-scheduler-date-time-shader-top, @@ -670,6 +674,10 @@ position: absolute; margin-left: @SCHEDULER_LEFT_COLUMN_WIDTH; background-color: @SCHEDULER_TIME_INDICATOR_BACKGROUND_COLOR; + + .dx-scheduler-small & { + margin-left: @SCHEDULER_LEFT_COLUMN_WIDTH * @SCHEDULER_SMALL_SIZE_FACTOR; + } } }