Skip to content

Commit 565a689

Browse files
committed
fix(rtl): apply styling fixes for non bootstrap 4 layouts
BREAKING CHANGE: week view all day events with RTL may need some styling adjustments in your application for them to display properly Fixes #1583
1 parent cfd2ab3 commit 565a689

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

projects/angular-calendar/src/modules/month/calendar-month-view.scss

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ $cal-month-view-vars: map.merge($cal-vars, $cal-month-view-vars);
141141
white-space: nowrap;
142142
vertical-align: middle;
143143
border-radius: 10px;
144+
float: left;
144145
}
145146

146147
.cal-day-number {

projects/angular-calendar/src/modules/week/calendar-week-view.component.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ export interface CalendarWeekViewBeforeRenderEvent extends WeekView {
138138
rtl ? null : (100 / days.length) * allDayEvent.offset
139139
"
140140
[style.marginRight.%]="
141-
rtl
142-
? (100 / days.length) * (days.length - allDayEvent.offset) * -1
143-
: null
141+
rtl ? (100 / days.length) * allDayEvent.offset : null
144142
"
145143
mwlResizable
146144
[resizeSnapGrid]="{ left: dayColumnWidth, right: dayColumnWidth }"

0 commit comments

Comments
 (0)