diff options
Diffstat (limited to 'client/src/app/shared/forms/markdown-textarea.component.html')
-rw-r--r-- | client/src/app/shared/forms/markdown-textarea.component.html | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/client/src/app/shared/forms/markdown-textarea.component.html b/client/src/app/shared/forms/markdown-textarea.component.html index 3cadb3619..a519f3e0a 100644 --- a/client/src/app/shared/forms/markdown-textarea.component.html +++ b/client/src/app/shared/forms/markdown-textarea.component.html | |||
@@ -1,12 +1,12 @@ | |||
1 | <div class="root" [ngStyle]="{ 'flex-direction': flexDirection }"> | 1 | <div class="root" [ngClass]="{ 'maximized': isMaximized }" [ngStyle]="{ 'max-width': textareaMaxWidth }"> |
2 | <textarea | 2 | <textarea #textarea |
3 | [(ngModel)]="content" (ngModelChange)="onModelChange()" | 3 | [(ngModel)]="content" (ngModelChange)="onModelChange()" |
4 | class="form-control" [ngClass]="classes" | 4 | class="form-control" [ngClass]="classes" |
5 | [ngStyle]="{ width: textareaWidth, height: textareaHeight, 'margin-right': textareaMarginRight }" | 5 | [ngStyle]="{ height: textareaHeight }" |
6 | [id]="name" [name]="name"> | 6 | [id]="name" [name]="name"> |
7 | </textarea> | 7 | </textarea> |
8 | 8 | ||
9 | <div ngbNav #nav="ngbNav" class="nav-pills previews"> | 9 | <div ngbNav #nav="ngbNav" class="nav-pills nav-preview"> |
10 | <ng-container ngbNavItem *ngIf="truncate !== undefined"> | 10 | <ng-container ngbNavItem *ngIf="truncate !== undefined"> |
11 | <a ngbNavLink i18n>Truncated preview</a> | 11 | <a ngbNavLink i18n>Truncated preview</a> |
12 | 12 | ||
@@ -22,6 +22,14 @@ | |||
22 | <div [innerHTML]="previewHTML"></div> | 22 | <div [innerHTML]="previewHTML"></div> |
23 | </ng-template> | 23 | </ng-template> |
24 | </ng-container> | 24 | </ng-container> |
25 | |||
26 | <my-button | ||
27 | *ngIf="!isMaximized" icon="fullscreen" (click)="onMaximizeClick()" | ||
28 | ></my-button> | ||
29 | |||
30 | <my-button | ||
31 | *ngIf="isMaximized" icon="exit-fullscreen" (click)="onMaximizeClick()" | ||
32 | ></my-button> | ||
25 | </div> | 33 | </div> |
26 | 34 | ||
27 | <div [ngbNavOutlet]="nav"></div> | 35 | <div [ngbNavOutlet]="nav"></div> |