Merge pull request #3112 from dpalou/MOBILE-3833

Mobile 3833
main
Pau Ferrer Ocaña 2022-02-11 14:06:39 +01:00 committed by GitHub
commit e79c5d8edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 4 deletions

View File

@ -1,3 +1,5 @@
@import "~theme/globals";
:host { :host {
--addon-calendar-blank-day-background-color: var(--light); --addon-calendar-blank-day-background-color: var(--light);
@ -48,7 +50,7 @@
} }
} }
@media (min-width: 768px) { @include media-breakpoint-up(md) {
.addon-calendar-day-number { .addon-calendar-day-number {
text-align: start; text-align: start;
} }

View File

@ -100,7 +100,16 @@ export class CoreGradesCourseOptionHandlerService implements CoreCourseOptionsHa
* @return Promise resolved when done. * @return Promise resolved when done.
*/ */
async prefetch(course: CoreEnrolledCourseDataWithExtraInfoAndOptions): Promise<void> { async prefetch(course: CoreEnrolledCourseDataWithExtraInfoAndOptions): Promise<void> {
await CoreGrades.getCourseGradesTable(course.id, undefined, undefined, true); try {
await CoreGrades.getCourseGradesTable(course.id, undefined, undefined, true);
} catch (error) {
if (error.errorcode === 'notingroup') {
// Don't fail the download because of this error.
return;
}
throw error;
}
} }
} }

View File

@ -1,8 +1,10 @@
@import "~theme/globals";
:host { :host {
.core-login-onboarding-step { .core-login-onboarding-step {
padding: 10px 20px; padding: 10px 20px;
text-align: center; text-align: center;
@media (min-width: 768px) { @include media-breakpoint-up(md) {
max-width: 80%; max-width: 80%;
} }
margin: 0 auto; margin: 0 auto;

View File

@ -100,7 +100,7 @@
} }
} }
@media (min-width: 768px) { @include media-breakpoint-up(md) {
ion-content > * { ion-content > * {
max-width: 600px; max-width: 600px;
margin: 0 auto; margin: 0 auto;

View File

@ -401,6 +401,15 @@ ion-alert.core-nohead {
ion-alert { ion-alert {
--border-radius: var(--huge-radius); --border-radius: var(--huge-radius);
&.md, &.ios {
--max-width: 80%;
@include media-breakpoint-up(md) {
--max-width: 384px;
}
}
.alert-wrapper { .alert-wrapper {
overflow: auto; overflow: auto;
border-radius: var(--border-radius) !important; border-radius: var(--border-radius) !important;