Skip to content

Commit

Permalink
fix(layout): adjust mobile layout issue discovered during dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 committed Apr 22, 2024
1 parent 35c8cb6 commit d071d4c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
12 changes: 2 additions & 10 deletions src/style-auro-calendar-month.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ $calendar-padding-desktop: var(--ds-size-200, $ds-size-200);
position: relative;

display: block;
width: calc(100% - var(--ds-size-300, $ds-size-300));
width: calc(100% - var(--ds-size-200, $ds-size-200) - var(--ds-size-200, $ds-size-200));

padding: 0 var(--ds-size-200, $ds-size-200);
margin: 0 var(--ds-size-200, $ds-size-200);

background-color: var(--ds-color-background-lightest, $ds-color-background-lightest);

Expand All @@ -31,14 +31,6 @@ $calendar-padding-desktop: var(--ds-size-200, $ds-size-200);
}
}

:host(:last-of-type) {
margin-bottom: 150px; // This value is derived from the height of the mobile-footer

@include auro_grid-breakpoint--sm {
margin-bottom: 0;
}
}

:host(:not(:last-of-type)) {
@include auro_grid-breakpoint--sm {
&:after {
Expand Down
20 changes: 9 additions & 11 deletions src/style-auro-calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@
}

.mobileHeader {
position: absolute;
top: 0;
left: 0;

display: none;
width: 100%;
height: var(--mobile-header-height);
Expand Down Expand Up @@ -122,9 +118,6 @@
}

.mobileFooter {
position: fixed;
bottom: 0;

display: none;
width: 100%;

Expand Down Expand Up @@ -168,16 +161,21 @@
display: flex;
}

.calendars {
position: relative;
top: var(--mobile-header-height);
.calendarWrapper {
display: flex;
height: 100%;

flex-direction: column;
overflow: auto hidden;
}

.calendars {
display: flex;
flex-direction: column;
flex: 1;

align-items: center;
width: 100%;
height: calc(100vh - var(--mobile-header-height));

overflow-y: scroll;
overscroll-behavior: contain;
Expand Down

0 comments on commit d071d4c

Please sign in to comment.