Merge branch 'max_dev' of Software_Engineering_I/greenvironment-frontend into master

master
Trivernis 5 years ago committed by Gitea
commit d718d48ef2

@ -34,9 +34,12 @@ $mat-card-header-size: 40px !default
margin-left: auto
::ng-deep img
width: 100%
height: auto
max-width: 100%
max-height: 60vh
border-radius: 4px
display: block
margin-left: auto
margin-right: auto
::ng-deep video
width: 100%
max-height: 40vh

@ -83,7 +83,7 @@
<span class="mat-button" *ngIf="!loggedIn" fxShow="true" fxHide.lt-md="true" routerLink="/login"><span>Hello, Sign in</span></span>
<button mat-icon-button [matMenuTriggerFor]="requestMenu" [disabled]="!loggedIn" id="menu-button">
<mat-icon [matBadge]="user.receivedRequests.length" [matBadgeHidden]="!(user.receivedRequests.length > 0)"
matBadgeColor="accent">notifications
matBadgeColor="warn">notifications
</mat-icon>
</button>
@ -93,7 +93,7 @@
</div>
<mat-menu #requestMenu="matMenu">
<span mat-menu-item disableRipple="true" disabled="true">friend requests:</span>
<span class="request-menu" mat-menu-item disableRipple="false" disabled="true">friend requests:</span>
<button mat-menu-item *ngFor="let request of user.receivedRequests"
[class.selected]="request === selectedRequest" (click)="$event.stopPropagation();" disableRipple="true">
<button mat-icon-button (click)=acceptRequest(request.senderUserID) (click)="$event.stopPropagation();">

@ -66,3 +66,5 @@
text-align: right
width: 100%
::ng-deep .mat-icon
margin: 0 !important

@ -10,6 +10,8 @@
width: 100%
margin-top: 0.5em
cursor: pointer
outline: none
user-select: none
::ng-deep .mat-card-header-text
margin: 0 24px

@ -10,6 +10,7 @@
<div id="grouplist">
<mat-card class="group-card" *ngFor="let group of user.groups"
matRipple
[class.selected]="group === selectedGroup" (click)="showGroupProfile(group)">
<mat-card-header>
<div mat-card-avatar>

Loading…
Cancel
Save