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:
parent
0f07c28951
commit
3031971ec2
4 changed files with 147 additions and 232 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue