Skip to content

Commit

Permalink
fix(datepicker): fix responsive on Date Range Picker (#4127) (#4891)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mila authored and valorkin committed Dec 6, 2018
1 parent 55862b8 commit 53b88c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions src/datepicker/bs-datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
position: relative;
z-index: 1;


&:after {
clear: both;
content: '';
Expand Down Expand Up @@ -355,7 +354,6 @@

/* .bs-datepicker-multiple */
&-multiple {
display: inline-block;
border-radius: 4px 0 0 4px;

& + & {
Expand Down Expand Up @@ -396,6 +394,13 @@
padding: 15px;
}

.bs-media-container {
display: flex;
@media(max-width: 768px) {
flex-direction: column;
}
}

/*.bs-datepicker-custom-range */
&-custom-range {
padding: 15px;
Expand Down
6 changes: 3 additions & 3 deletions src/datepicker/themes/bs/bs-datepicker-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!--calendars-->
<div class="bs-calendar-container" [ngSwitch]="viewMode | async" role="application">
<!--days calendar-->
<div *ngSwitchCase="'day'">
<div *ngSwitchCase="'day'" class="bs-media-container">
<bs-days-calendar-view
*ngFor="let calendar of (daysCalendar | async)"
[class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"
Expand All @@ -19,7 +19,7 @@
</div>

<!--months calendar-->
<div *ngSwitchCase="'month'">
<div *ngSwitchCase="'month'" class="bs-media-container">
<bs-month-calendar-view
*ngFor="let calendar of (monthsCalendar | async)"
[class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"
Expand All @@ -32,7 +32,7 @@
</div>

<!--years calendar-->
<div *ngSwitchCase="'year'">
<div *ngSwitchCase="'year'" class="bs-media-container">
<bs-years-calendar-view
*ngFor="let calendar of (yearsCalendar | async)"
[class.bs-datepicker-multiple]="(daysCalendar | async )?.length > 1"
Expand Down

0 comments on commit 53b88c0

Please sign in to comment.