Merge pull request #4060 from crazyserver/MOBILE-4470

Mobile 4470
main
Dani Palou 2024-05-23 07:09:56 +02:00 committed by GitHub
commit 7f3b2a6df1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 44 additions and 40 deletions

View File

@ -74,8 +74,8 @@
</ion-card> </ion-card>
</ng-container> </ng-container>
<div class="addon-data-contents addon-data-entries-{{database.id}}" *ngIf="!isEmpty && database"> <div class="addon-data-contents addon-data-entries addon-data-entries-{{database.id}}" *ngIf="!isEmpty && database">
<core-style [css]="database.csstemplate" prefix=".addon-data-entries-{{database.id}}" /> <core-style [css]="database.csstemplate" prefix="div.addon-data-entries.addon-data-entries-{{database.id}}" />
<core-compile-html [text]="entriesRendered" [jsData]="jsData" [extraImports]="extraImports" /> <core-compile-html [text]="entriesRendered" [jsData]="jsData" [extraImports]="extraImports" />
</div> </div>

View File

@ -16,7 +16,7 @@ $grid-column-paddings: (
--border-color: var(--stroke); --border-color: var(--stroke);
} }
.addon-data-contents { .addon-data-edit-entry {
overflow: visible; overflow: visible;
white-space: normal; white-space: normal;
word-break: break-word; word-break: break-word;

View File

@ -20,8 +20,8 @@
<core-group-selector [groupInfo]="groupInfo" [(selected)]="selectedGroup" (selectedChange)="setGroup(selectedGroup)" <core-group-selector [groupInfo]="groupInfo" [(selected)]="selectedGroup" (selectedChange)="setGroup(selectedGroup)"
[courseId]="database?.course" /> [courseId]="database?.course" />
<div class="addon-data-contents {{cssClass}}" *ngIf="database"> <div class="addon-data-contents addon-data-edit-entry {{cssClass}}" *ngIf="database">
<core-style [css]="database.csstemplate" prefix=".{{cssClass}}" /> <core-style [css]="database.csstemplate" prefix="div.addon-data-edit-entry.{{cssClass}}" />
<form (ngSubmit)="save($event)" [formGroup]="editForm" #editFormEl> <form (ngSubmit)="save($event)" [formGroup]="editForm" #editFormEl>
<core-compile-html [text]="editFormRender" [jsData]="jsData" [extraImports]="extraImports" /> <core-compile-html [text]="editFormRender" [jsData]="jsData" [extraImports]="extraImports" />

View File

@ -28,7 +28,7 @@
[courseId]="courseId" /> [courseId]="courseId" />
<div class="addon-data-contents addon-data-entry addon-data-entries-{{database.id}}" *ngIf="database && entry"> <div class="addon-data-contents addon-data-entry addon-data-entries-{{database.id}}" *ngIf="database && entry">
<core-style [css]="database.csstemplate" prefix=".addon-data-entries-{{database.id}}" /> <core-style [css]="database.csstemplate" prefix="div.addon-data-entry.addon-data-entries-{{database.id}}" />
<core-compile-html [text]="entryHtml" [jsData]="jsData" [extraImports]="extraImports" (compiling)="setRenderingEntry($event)" /> <core-compile-html [text]="entryHtml" [jsData]="jsData" [extraImports]="extraImports" (compiling)="setRenderingEntry($event)" />
</div> </div>

View File

@ -21,8 +21,8 @@
<!-- Template to render the header of a site card. --> <!-- Template to render the header of a site card. -->
<ng-template #siteCardHeader let-site="site" let-isCurrentSite="isCurrentSite"> <ng-template #siteCardHeader let-site="site" let-isCurrentSite="isCurrentSite">
<ion-item-divider sticky="true" *ngIf="site" class="core-sites-list-sitename"> <ion-item-divider sticky="true" *ngIf="site" class="core-sites-list-sitename ion-text-nowrap">
<ion-label> <ion-label class="ion-text-nowrap">
<h2> <h2>
<core-format-text [text]="site.siteName" clean="true" [siteId]="site.id" /> <core-format-text [text]="site.siteName" clean="true" [siteId]="site.id" />
</h2> </h2>
@ -42,7 +42,7 @@
<core-user-avatar [site]="site" slot="start" [linkProfile]="false" [siteId]="site.id" /> <core-user-avatar [site]="site" slot="start" [linkProfile]="false" [siteId]="site.id" />
<ion-label> <ion-label class="ion-text-nowrap">
<p class="item-heading">{{site.fullname}}</p> <p class="item-heading">{{site.fullname}}</p>
<ng-container *ngIf="siteLabelTemplate" [ngTemplateOutlet]="siteLabelTemplate" <ng-container *ngIf="siteLabelTemplate" [ngTemplateOutlet]="siteLabelTemplate"
[ngTemplateOutletContext]="{site: site, isCurrentSite: isCurrentSite}" /> [ngTemplateOutletContext]="{site: site, isCurrentSite: isCurrentSite}" />

View File

@ -41,7 +41,7 @@ export class CoreStyleComponent implements OnChanges {
ngOnChanges(): void { ngOnChanges(): void {
if (this.element && this.element.nativeElement) { if (this.element && this.element.nativeElement) {
const style = document.createElement('style'); const style = document.createElement('style');
style.innerText = this.prefixCSS(this.css, this.prefix); style.innerHTML = this.prefixCSS(this.css, this.prefix);
this.element.nativeElement.innerHTML = ''; this.element.nativeElement.innerHTML = '';
this.element.nativeElement.appendChild(style); this.element.nativeElement.appendChild(style);

View File

@ -37,6 +37,7 @@
background-color: var(--core-question-feedback-background-color); background-color: var(--core-question-feedback-background-color);
.specificfeedback, .rightanswer, .im-feedback, .feedback, .generalfeedback { .specificfeedback, .rightanswer, .im-feedback, .feedback, .generalfeedback {
font: var(--mdl-typography-body-font-md);
margin: 0 0 .5em; margin: 0 0 .5em;
p { p {

View File

@ -93,6 +93,10 @@ body:not(.core-iframe-fullscreen) .collapsible-header-page {
ion-content { ion-content {
--offset-top: var(--collapsible-header-collapsed-height) !important; --offset-top: var(--collapsible-header-collapsed-height) !important;
> ion-refresher {
z-index: 1;
}
} }
.collapsible-header-expanded { .collapsible-header-expanded {

View File

@ -69,7 +69,6 @@ core-format-text {
position: relative; position: relative;
display: inline-block; display: inline-block;
max-width: 100%; max-width: 100%;
}
.core-image-viewer-icon { .core-image-viewer-icon {
position: absolute; position: absolute;
@ -102,6 +101,7 @@ core-format-text {
display: none; display: none;
} }
} }
}
// Disable clicks in links inside MathJax equations. // Disable clicks in links inside MathJax equations.
.filter_mathjaxloader_equation .MathJax_Preview a { .filter_mathjaxloader_equation .MathJax_Preview a {

View File

@ -1,4 +1,5 @@
ion-loading { ion-loading.ios,
ion-loading.md {
--spinner-color: var(--core-loading-spinner); --spinner-color: var(--core-loading-spinner);
--border-radius: var(--modal-radius); --border-radius: var(--modal-radius);

View File

@ -1,6 +1,4 @@
ion-spinner, ion-spinner,
ion-refresher { ion-refresher {
--ion-color-base: var(--core-loading-spinner);
--ion-color-primary: var(--core-loading-spinner);
--color: var(--core-loading-spinner); --color: var(--core-loading-spinner);
} }