Skip to content

Commit

Permalink
Fixing Notes Modal Size
Browse files Browse the repository at this point in the history
  • Loading branch information
bob-fornal committed Jul 8, 2024
1 parent de9b5ff commit 789e0b9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h2 mat-dialog-title>Notes Editor</h2>

<mat-dialog-content>
<mat-form-field class="full-width">
<mat-dialog-content class="dialog-content">
<mat-form-field class="full-width adjusted-height">
<mat-label>Notes</mat-label>
<textarea #notes matInput placeholder="Add notes" (input)="handleNotesChange(notes.value)">{{ data.notes }}</textarea>
</mat-form-field>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.dialog-content {

.full-width {
width: 100%;
}
.adjusted-height {
height: 265px;
}
}
2 changes: 2 additions & 0 deletions src/app/slides/abstract.slide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export abstract class AbstractSlide {
const notes = this.notes.toString();
const dialogRef = this.dialog.open(EditNotesDialogComponent, {
data: { notes },
height: '400px',
width: '600px',
});

dialogRef.afterClosed().subscribe(this.handleEditNotesClosed.bind(this));
Expand Down

0 comments on commit 789e0b9

Please sign in to comment.