Skip to content
Snippets Groups Projects
Commit 64b01757 authored by rhenck's avatar rhenck
Browse files

[editor] Fix TextEditor scrolling and height

parent 4d80cce2
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ import { TextImageLabel } from 'common/models/elements/label-interfaces';
</mat-dialog-actions>
`,
styles: [`
aspect-rich-text-editor {min-height: 200px;}
.image-panel {
display: flex;
margin-top: 20px;
......
......@@ -75,14 +75,15 @@ import { TextLabel } from 'common/models/elements/label-interfaces';
</mat-dialog-actions>
`,
styles: [`
mat-checkbox {
margin-bottom: 15px;
}
aspect-rich-text-editor {min-height: 200px;}
mat-checkbox {
margin-bottom: 15px;
}
aspect-text-image-panel {
margin-left: auto;
margin-right: auto;
}
aspect-text-image-panel {
margin-left: auto;
margin-right: auto;
}
`]
})
export class LikertRowEditDialogComponent {
......
......@@ -15,6 +15,10 @@ import { MAT_DIALOG_DATA } from '@angular/material/dialog';
<button mat-button [mat-dialog-close]="data.content">{{'save' | translate }}</button>
<button mat-button mat-dialog-close>{{'cancel' | translate }}</button>
</mat-dialog-actions>
`,
styles: `
.mat-mdc-dialog-content {display: flex; flex-direction: column;}
aspect-rich-text-editor {min-height: 450px;}
`
})
export class RichTextEditDialogComponent {
......
:host ::ng-deep div.ProseMirror {
min-height: 350px;
:host {
display: flex;
flex-direction: column;
}
tiptap-editor {
flex-grow: 1;
display: flex;
overflow: scroll;
}
:host ::ng-deep .small-input div.ProseMirror {
min-height: 100px;
:host ::ng-deep div.ProseMirror {
width: 100%;
margin: 10px;
overflow: scroll;
}
.editor-control-panel {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment