diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-20 15:16:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-20 15:16:26 +0200 |
commit | 3031971ec21ed6400d3b73d1f7e00b44d1617667 (patch) | |
tree | b3ae8b4d8ddaefc4342b6a8c8237777ffc7fcd1f /client/src/app/shared/shared-forms/markdown-textarea.component.html | |
parent | 0f07c28951cf893e6313009d9517c3a5c6c84abd (diff) | |
download | PeerTube-3031971ec21ed6400d3b73d1f7e00b44d1617667.tar.gz PeerTube-3031971ec21ed6400d3b73d1f7e00b44d1617667.tar.zst PeerTube-3031971ec21ed6400d3b73d1f7e00b44d1617667.zip |
Less complicated markdown textarea CSS
Diffstat (limited to 'client/src/app/shared/shared-forms/markdown-textarea.component.html')
-rw-r--r-- | client/src/app/shared/shared-forms/markdown-textarea.component.html | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/client/src/app/shared/shared-forms/markdown-textarea.component.html b/client/src/app/shared/shared-forms/markdown-textarea.component.html index 7c2a42791..afb046c7f 100644 --- a/client/src/app/shared/shared-forms/markdown-textarea.component.html +++ b/client/src/app/shared/shared-forms/markdown-textarea.component.html | |||
@@ -1,7 +1,8 @@ | |||
1 | <div class="root" [ngClass]="{ 'maximized': isMaximized }" [ngStyle]="{ 'max-width': textareaMaxWidth }"> | 1 | <div class="root" [ngClass]="{ 'maximized': isMaximized }" [ngStyle]="{ 'max-width': textareaMaxWidth }"> |
2 | |||
2 | <textarea #textarea | 3 | <textarea #textarea |
3 | [(ngModel)]="content" (ngModelChange)="onModelChange()" | 4 | [(ngModel)]="content" (ngModelChange)="onModelChange()" |
4 | class="form-control" [ngClass]="classes" | 5 | class="form-control" [ngClass]="{ 'input-error': formError }" |
5 | [attr.disabled]="disabled || null" | 6 | [attr.disabled]="disabled || null" |
6 | [ngStyle]="{ height: textareaHeight }" | 7 | [ngStyle]="{ height: textareaHeight }" |
7 | [id]="name" [name]="name"> | 8 | [id]="name" [name]="name"> |
@@ -25,14 +26,18 @@ | |||
25 | </ng-template> | 26 | </ng-template> |
26 | </ng-container> | 27 | </ng-container> |
27 | 28 | ||
28 | <my-button | 29 | <my-global-icon |
29 | *ngIf="!isMaximized" [title]="maximizeInText" className="maximize-button" icon="fullscreen" (click)="onMaximizeClick()" [disabled]="disabled" | 30 | *ngIf="!isMaximized" role="button" [ngbTooltip]="maximizeInText" |
30 | ></my-button> | 31 | class="maximize-button" iconName="fullscreen" (click)="onMaximizeClick()" [ngClass]="{ disabled: disabled }" |
32 | ></my-global-icon> | ||
31 | 33 | ||
32 | <my-button | 34 | <my-global-icon |
33 | *ngIf="isMaximized" [title]="maximizeOutText" className="maximize-button" icon="exit-fullscreen" (click)="onMaximizeClick()" [disabled]="disabled" | 35 | *ngIf="isMaximized" role="button" [ngbTooltip]="maximizeOutText" |
34 | ></my-button> | 36 | class="maximize-button" iconName="exit-fullscreen" (click)="onMaximizeClick()" [ngClass]="{ disabled: disabled }" |
37 | ></my-global-icon> | ||
35 | </div> | 38 | </div> |
36 | 39 | ||
37 | <div [ngbNavOutlet]="nav"></div> | 40 | <div [ngbNavOutlet]="nav"></div> |
41 | |||
42 | <div *ngIf="!isMaximized && formError" class="form-error">{{ formError }}</div> | ||
38 | </div> | 43 | </div> |