1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Less complicated markdown textarea CSS

This commit is contained in:
Chocobozzz 2022-06-20 15:16:26 +02:00
parent 0f07c28951
commit 3031971ec2
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 147 additions and 232 deletions

View file

@ -24,6 +24,7 @@ import { Video } from '@shared/models'
export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {
@Input() content = ''
@Input() formError: string
@Input() classes: string[] | { [klass: string]: any[] | any } = []
@Input() textareaMaxWidth = '100%'
@ -93,6 +94,8 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {
}
onMaximizeClick () {
if (this.disabled) return
this.isMaximized = !this.isMaximized
// Make sure textarea have the focus