From dd2cfbcef2fccf091ce73420aa599dfa8e80ff36 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Fri, 21 Feb 2020 11:29:28 +0100 Subject: [PATCH] fix bg private note --- src/frontend/app/notes/note-editor.component.html | 4 ++-- src/frontend/app/notes/notes-list.component.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/app/notes/note-editor.component.html b/src/frontend/app/notes/note-editor.component.html index f5ac2107555..f28330824bc 100644 --- a/src/frontend/app/notes/note-editor.component.html +++ b/src/frontend/app/notes/note-editor.component.html @@ -53,8 +53,8 @@ <mat-icon fontSet="far" fontIcon="fa-paper-plane fa-2x"></mat-icon> </button> </mat-form-field> -<div style="overflow: auto;max-height: 75px;background:white;"> - <div style="font-size: 11px;position: sticky;top: 0px;">{{lang.noteVisibleBy}}</div> +<div style="overflow: auto;max-height: 75px;"> + <div style="font-size: 11px;position: sticky;top: 0px;" [style.background]="upMode ? '#FFEDCC' : 'white'">{{lang.noteVisibleBy}}</div> <span *ngIf="entitiesRestriction.length === 0" class="label label-default noNoteRestriction">{{lang.all}}</span> <ng-container *ngFor="let entity of entities | sortBy: 'entity_label';let i=index;"> <span *ngIf="entitiesRestriction.indexOf(entity.id) > -1" class="label label-default noteRestriction" diff --git a/src/frontend/app/notes/notes-list.component.html b/src/frontend/app/notes/notes-list.component.html index a9d39a6a3cd..cdd9a828884 100644 --- a/src/frontend/app/notes/notes-list.component.html +++ b/src/frontend/app/notes/notes-list.component.html @@ -8,7 +8,7 @@ {{lang.noNote}} </div> <mat-card *ngFor="let note of notes" style="margin-top: 10px;" - [ngStyle]="{'background-color': note.entities_restriction ? 'rgba(255, 165, 0, 0.2)' : 'white'}"> + [ngStyle]="{'background-color': note.entities_restriction ? '#FFEDCC' : 'white'}"> <mat-card-header> <div mat-card-avatar><i color="primary" class="fa fa-user"></i></div> <mat-card-title>{{note.firstname}} {{note.lastname}}</mat-card-title> -- GitLab