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 {
--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 {
text-align: start;
}

View File

@ -100,7 +100,16 @@ export class CoreGradesCourseOptionHandlerService implements CoreCourseOptionsHa
* @return Promise resolved when done.
*/
async prefetch(course: CoreEnrolledCourseDataWithExtraInfoAndOptions): Promise<void> {
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 {
.core-login-onboarding-step {
padding: 10px 20px;
text-align: center;
@media (min-width: 768px) {
@include media-breakpoint-up(md) {
max-width: 80%;
}
margin: 0 auto;

View File

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

View File

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