Skip to content

Commit

Permalink
Merge pull request #1753 from bcgov/feature/ALCS-1958
Browse files Browse the repository at this point in the history
ALCS board, comment, staff journal UI tweaks
  • Loading branch information
trslater authored Jun 11, 2024
2 parents 6f92c1a + 94b8fac commit a16ca37
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 14 deletions.
3 changes: 3 additions & 0 deletions alcs-frontend/src/app/features/board/board.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@

.board-header {
display: flex;
background-color: white;
justify-content: space-between;
align-items: center;
padding: 24px 80px 12px 76px;
position: sticky;
left: 0;
top: 0;
z-index: 1000;
}

.board-content {
Expand Down
21 changes: 11 additions & 10 deletions alcs-frontend/src/app/shared/commenting/comments.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
<mat-form-field *ngIf="!isEditing" class="placeholder-input" appearance="outline" (click)="onEdit()">
<input matInput placeholder="Add a comment..." />
</mat-form-field>

<app-mention-textarea
*ngIf="isEditing"
(create)="onSave($event)"
[comment]="comment"
(cancel)="onCancel()"
[isNewComment]="true"
[notificationTitle]="notificationTitle"
labelText="Add a comment"
>
</app-mention-textarea>
</div>
<app-mention-textarea
*ngIf="isEditing"
(create)="onSave($event)"
[comment]="comment"
(cancel)="onCancel()"
[isNewComment]="true"
[notificationTitle]='notificationTitle'
labelText="Add a comment"
>
</app-mention-textarea>
<app-comment
*ngFor="let comment of comments"
[comment]="comment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
justify-content: center;
margin: 0 -2px 8px;
position: sticky;
top: 0;
top: 84px;
text-align: center;
z-index: 1000;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="container">
<mat-form-field class="comment-input" appearance="fill">
<mat-form-field class="comment-input" appearance="outline">
<mat-label [hidden]="!labelText">{{ labelText }}</mat-label>
<textarea
#textarea
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.container {
margin-bottom: 8px;
display: flex;
flex-direction: column;
gap: 16px;
}

.comment-input {
Expand All @@ -9,3 +11,7 @@
::ng-deep .mdc-text-field {
overflow: visible;
}

::ng-deep .mention-item {
text-decoration: none;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="container">
<mat-form-field class="note-input" appearance="fill">
<mat-form-field class="note-input" appearance="outline">
<mat-label [hidden]="!labelText">{{ labelText }}</mat-label>
<textarea #textarea cdkTextareaAutosize [(ngModel)]="note.body" [disabled]="isSaving" matInput></textarea>
</mat-form-field>
Expand Down

0 comments on commit a16ca37

Please sign in to comment.