forked from CIT/Vmeda.Online
		
	MOBILE-3320 core: Fix wraps on chat and assignment submission
This commit is contained in:
		
							parent
							
								
									ceeddda908
								
							
						
					
					
						commit
						3de60760b0
					
				@ -53,7 +53,7 @@
 | 
				
			|||||||
            </ion-item>
 | 
					            </ion-item>
 | 
				
			||||||
        </ion-card>
 | 
					        </ion-card>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <core-empty-box *ngIf="!filteredEvents || !filteredEvents.length" icon="fas-calendar" inline="true"
 | 
					        <core-empty-box *ngIf="!filteredEvents || !filteredEvents.length" icon="fas-calendar"
 | 
				
			||||||
            [message]="'addon.calendar.noevents' | translate">
 | 
					            [message]="'addon.calendar.noevents' | translate">
 | 
				
			||||||
        </core-empty-box>
 | 
					        </core-empty-box>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -96,7 +96,7 @@
 | 
				
			|||||||
                            <core-user-avatar slot="start" [user]="members[message.useridfrom]" [linkProfile]="false"
 | 
					                            <core-user-avatar slot="start" [user]="members[message.useridfrom]" [linkProfile]="false"
 | 
				
			||||||
                                aria-hidden="true">
 | 
					                                aria-hidden="true">
 | 
				
			||||||
                            </core-user-avatar>
 | 
					                            </core-user-avatar>
 | 
				
			||||||
                            {{ members[message.useridfrom].fullname }}
 | 
					                            <div>{{ members[message.useridfrom].fullname }}</div>
 | 
				
			||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                        <div *ngIf="!message.showUserData" class="sr-only">
 | 
					                        <div *ngIf="!message.showUserData" class="sr-only">
 | 
				
			||||||
                            {{ message.useridfrom == currentUserId
 | 
					                            {{ message.useridfrom == currentUserId
 | 
				
			||||||
 | 
				
			|||||||
@ -8,7 +8,6 @@
 | 
				
			|||||||
            <h2>{{ user!.fullname }}</h2>
 | 
					            <h2>{{ user!.fullname }}</h2>
 | 
				
			||||||
            <ng-container *ngTemplateOutlet="submissionStatus"></ng-container>
 | 
					            <ng-container *ngTemplateOutlet="submissionStatus"></ng-container>
 | 
				
			||||||
        </ion-label>
 | 
					        </ion-label>
 | 
				
			||||||
        <ng-container *ngTemplateOutlet="submissionStatusBadges"></ng-container>
 | 
					 | 
				
			||||||
    </ion-item>
 | 
					    </ion-item>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!-- Status of the submission if user is blinded. -->
 | 
					    <!-- Status of the submission if user is blinded. -->
 | 
				
			||||||
@ -17,7 +16,6 @@
 | 
				
			|||||||
            <h2>{{ 'addon.mod_assign.hiddenuser' | translate }} {{blindId}}</h2>
 | 
					            <h2>{{ 'addon.mod_assign.hiddenuser' | translate }} {{blindId}}</h2>
 | 
				
			||||||
            <ng-container *ngTemplateOutlet="submissionStatus"></ng-container>
 | 
					            <ng-container *ngTemplateOutlet="submissionStatus"></ng-container>
 | 
				
			||||||
        </ion-label>
 | 
					        </ion-label>
 | 
				
			||||||
        <ng-container *ngTemplateOutlet="submissionStatusBadges"></ng-container>
 | 
					 | 
				
			||||||
    </ion-item>
 | 
					    </ion-item>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!-- Status of the submission in the rest of cases. -->
 | 
					    <!-- Status of the submission in the rest of cases. -->
 | 
				
			||||||
@ -26,7 +24,6 @@
 | 
				
			|||||||
            <h2>{{ 'addon.mod_assign.submissionstatus' | translate }}</h2>
 | 
					            <h2>{{ 'addon.mod_assign.submissionstatus' | translate }}</h2>
 | 
				
			||||||
            <ng-container *ngTemplateOutlet="submissionStatus"></ng-container>
 | 
					            <ng-container *ngTemplateOutlet="submissionStatus"></ng-container>
 | 
				
			||||||
        </ion-label>
 | 
					        </ion-label>
 | 
				
			||||||
        <ng-container *ngTemplateOutlet="submissionStatusBadges"></ng-container>
 | 
					 | 
				
			||||||
    </ion-item>
 | 
					    </ion-item>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!-- Tabs: see the submission or grade it. -->
 | 
					    <!-- Tabs: see the submission or grade it. -->
 | 
				
			||||||
@ -385,12 +382,12 @@
 | 
				
			|||||||
            {{ 'addon.mod_assign.defaultteam' | translate }}
 | 
					            {{ 'addon.mod_assign.defaultteam' | translate }}
 | 
				
			||||||
        </p>
 | 
					        </p>
 | 
				
			||||||
    </ng-container>
 | 
					    </ng-container>
 | 
				
			||||||
</ng-template>
 | 
					    <p>
 | 
				
			||||||
<ng-template #submissionStatusBadges>
 | 
					        <ion-badge *ngIf="statusTranslated" [color]="statusColor">
 | 
				
			||||||
    <ion-badge slot="end" *ngIf="statusTranslated" [color]="statusColor">
 | 
					 | 
				
			||||||
            {{ statusTranslated }}
 | 
					            {{ statusTranslated }}
 | 
				
			||||||
        </ion-badge>
 | 
					        </ion-badge>
 | 
				
			||||||
    <ion-badge slot="end" *ngIf="gradingStatusTranslationId" [color]="gradingColor">
 | 
					        <ion-badge class="ion-margin-start" *ngIf="gradingStatusTranslationId" [color]="gradingColor">
 | 
				
			||||||
            {{ gradingStatusTranslationId | translate }}
 | 
					            {{ gradingStatusTranslationId | translate }}
 | 
				
			||||||
        </ion-badge>
 | 
					        </ion-badge>
 | 
				
			||||||
 | 
					    </p>
 | 
				
			||||||
</ng-template>
 | 
					</ng-template>
 | 
				
			||||||
 | 
				
			|||||||
@ -43,10 +43,10 @@
 | 
				
			|||||||
    </ion-card>
 | 
					    </ion-card>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <ng-container *ngIf="chat">
 | 
					    <ng-container *ngIf="chat">
 | 
				
			||||||
        <ion-button class="ion-margin" expand="block" color="primary" (click)="enterChat()">
 | 
					        <ion-button class="ion-margin ion-text-wrap" expand="block" color="primary" (click)="enterChat()">
 | 
				
			||||||
            {{ 'addon.mod_chat.enterchat' | translate }}
 | 
					            {{ 'addon.mod_chat.enterchat' | translate }}
 | 
				
			||||||
        </ion-button>
 | 
					        </ion-button>
 | 
				
			||||||
        <ion-button class="ion-margin" expand="block" color="light" *ngIf="sessionsAvailable" (click)="viewSessions()">
 | 
					        <ion-button class="ion-margin ion-text-wrap" expand="block" color="light" *ngIf="sessionsAvailable" (click)="viewSessions()">
 | 
				
			||||||
            {{ 'addon.mod_chat.viewreport' | translate }}
 | 
					            {{ 'addon.mod_chat.viewreport' | translate }}
 | 
				
			||||||
        </ion-button>
 | 
					        </ion-button>
 | 
				
			||||||
    </ng-container>
 | 
					    </ng-container>
 | 
				
			||||||
 | 
				
			|||||||
@ -10,11 +10,13 @@
 | 
				
			|||||||
        <core-context-menu-item *ngIf="blog"
 | 
					        <core-context-menu-item *ngIf="blog"
 | 
				
			||||||
            [priority]="750" content="{{'addon.blog.blog' | translate}}" [iconAction]="'far-newspaper'" (action)="gotoBlog()">
 | 
					            [priority]="750" content="{{'addon.blog.blog' | translate}}" [iconAction]="'far-newspaper'" (action)="gotoBlog()">
 | 
				
			||||||
        </core-context-menu-item>
 | 
					        </core-context-menu-item>
 | 
				
			||||||
        <core-context-menu-item *ngIf="discussions.loaded && !(hasOffline || hasOfflineRatings) && isOnline"
 | 
					        <core-context-menu-item
 | 
				
			||||||
 | 
					            *ngIf="discussions.onlineLoaded && discussions.loaded && !(hasOffline || hasOfflineRatings) && isOnline"
 | 
				
			||||||
            [priority]="700" [content]="'addon.mod_forum.refreshdiscussions' | translate" [iconAction]="refreshIcon" [closeOnClick]="false"
 | 
					            [priority]="700" [content]="'addon.mod_forum.refreshdiscussions' | translate" [iconAction]="refreshIcon" [closeOnClick]="false"
 | 
				
			||||||
            (action)="doRefresh(null, $event)">
 | 
					            (action)="doRefresh(null, $event)">
 | 
				
			||||||
        </core-context-menu-item>
 | 
					        </core-context-menu-item>
 | 
				
			||||||
        <core-context-menu-item *ngIf="discussions.loaded && (hasOffline || hasOfflineRatings) && isOnline"
 | 
					        <core-context-menu-item
 | 
				
			||||||
 | 
					            *ngIf="discussions.onlineLoaded && discussions.loaded && (hasOffline || hasOfflineRatings) && isOnline"
 | 
				
			||||||
            [priority]="600" [content]="'core.settings.synchronizenow' | translate" [iconAction]="syncIcon" [closeOnClick]="false"
 | 
					            [priority]="600" [content]="'core.settings.synchronizenow' | translate" [iconAction]="syncIcon" [closeOnClick]="false"
 | 
				
			||||||
            (action)="doRefresh(null, $event, true)">
 | 
					            (action)="doRefresh(null, $event, true)">
 | 
				
			||||||
        </core-context-menu-item>
 | 
					        </core-context-menu-item>
 | 
				
			||||||
@ -37,11 +39,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<!-- Content. -->
 | 
					<!-- Content. -->
 | 
				
			||||||
<core-split-view>
 | 
					<core-split-view>
 | 
				
			||||||
    <ion-refresher slot="fixed" [disabled]="!discussions.loaded" (ionRefresh)="doRefresh($event.target)">
 | 
					    <ion-refresher slot="fixed" [disabled]="!discussions.onlineLoaded || !discussions.loaded" (ionRefresh)="doRefresh($event.target)">
 | 
				
			||||||
        <ion-refresher-content pullingText="{{ 'core.pulltorefresh' | translate }}"></ion-refresher-content>
 | 
					        <ion-refresher-content pullingText="{{ 'core.pulltorefresh' | translate }}"></ion-refresher-content>
 | 
				
			||||||
    </ion-refresher>
 | 
					    </ion-refresher>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <core-loading [hideUntil]="discussions.loaded">
 | 
					    <core-loading [hideUntil]="discussions.onlineLoaded && discussions.loaded">
 | 
				
			||||||
        <!-- Activity info. -->
 | 
					        <!-- Activity info. -->
 | 
				
			||||||
        <core-course-module-info *ngIf="showCompletion" [module]="module" [showManualCompletion]="true"
 | 
					        <core-course-module-info *ngIf="showCompletion" [module]="module" [showManualCompletion]="true"
 | 
				
			||||||
            (completionChanged)="onCompletionChange()">
 | 
					            (completionChanged)="onCompletionChange()">
 | 
				
			||||||
 | 
				
			|||||||
@ -49,7 +49,7 @@
 | 
				
			|||||||
        [autoFocus]="true" [lengthCheck]="2" (onClear)="toggleSearch()" searchArea="AddonModGlossary-{{module.id}}">
 | 
					        [autoFocus]="true" [lengthCheck]="2" (onClear)="toggleSearch()" searchArea="AddonModGlossary-{{module.id}}">
 | 
				
			||||||
    </core-search-box>
 | 
					    </core-search-box>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <core-loading [hideUntil]="entries.loaded">
 | 
					    <core-loading [hideUntil]="loaded">
 | 
				
			||||||
        <!-- Activity info. -->
 | 
					        <!-- Activity info. -->
 | 
				
			||||||
        <core-course-module-info *ngIf="showCompletion" [module]="module" [showManualCompletion]="true"
 | 
					        <core-course-module-info *ngIf="showCompletion" [module]="module" [showManualCompletion]="true"
 | 
				
			||||||
            (completionChanged)="onCompletionChange()">
 | 
					            (completionChanged)="onCompletionChange()">
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user