Merge pull request #2847 from dpalou/MOBILE-3320

Mobile 3320
main
Noel De Martin 2021-06-22 16:55:43 +02:00 committed by GitHub
commit d0c4d986ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 38 deletions

View File

@ -647,7 +647,9 @@ export class AddonModQuizIndexComponent extends CoreCourseModuleMainActivityComp
if (data) {
this.gradebookData = {
grade: 'graderaw' in data ? data.graderaw : Number(data.grade),
grade: 'graderaw' in data && data.graderaw !== undefined && data.graderaw !== null ?
data.graderaw :
(data.grade !== undefined && data.grade !== null ? Number(data.grade) : undefined),
feedback: data.feedback,
};
}

View File

@ -17,11 +17,9 @@
</core-format-text>
</ion-label>
</ion-item>
<ion-item class="ion-text-wrap" [hidden]="!ddQuestion.loaded">
<ion-label>
<div class="fake-ion-item ion-text-wrap" [hidden]="!ddQuestion.loaded">
<core-format-text *ngIf="ddQuestion.ddArea" [adaptImg]="false" [component]="component" [componentId]="componentId"
[text]="ddQuestion.ddArea" [filter]="false" (afterRender)="ddAreaRendered()">
</core-format-text>
</ion-label>
</ion-item>
</div>
</div>

View File

@ -16,11 +16,9 @@
</core-format-text>
</ion-label>
</ion-item>
<ion-item class="ion-text-wrap" [hidden]="!ddQuestion.loaded">
<ion-label>
<div class="fake-ion-item ion-text-wrap" [hidden]="!ddQuestion.loaded">
<core-format-text *ngIf="ddQuestion.ddArea" [adaptImg]="false" [component]="component" [componentId]="componentId"
[text]="ddQuestion.ddArea" [filter]="false" (afterRender)="ddAreaRendered()">
</core-format-text>
</ion-label>
</ion-item>
</div>
</div>

View File

@ -2,8 +2,7 @@
<!-- Content is outside the core-loading to let the script calculate drag items position -->
<core-loading [hideUntil]="ddQuestion.loaded"></core-loading>
<ion-item class="ion-text-wrap" [hidden]="!ddQuestion.loaded">
<ion-label>
<div class="fake-ion-item ion-text-wrap" [hidden]="!ddQuestion.loaded">
<ion-card *ngIf="!ddQuestion.readOnly" class="core-info-card">
<ion-item>
<ion-icon name="fas-info-circle" slot="start" aria-hidden="true"></ion-icon>
@ -22,6 +21,5 @@
<div class="drags"></div>
</div>
</ion-label>
</ion-item>
</div>
</div>

View File

@ -209,9 +209,7 @@ core-format-text {
core-format-text {
ul {
padding-left: 1rem;
}
ul, ol {
-webkit-padding-start: 15px;
-webkit-margin-start: .2rem;
}
.atto_image_button_text-top,