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

Fix Cloze child positioning and Editor selection box

parent 6610c24e
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,7 @@ import { ElementComponent } from '../../directives/element-component.directive';
false">
`,
styles: [
':host {display: flex !important; width: 100%; height: 100%;}',
'.full-size {width: 100%; height: 100%;}',
'.image {object-fit: contain;}',
'.mdc-button {min-width: unset;}'
......
......@@ -37,6 +37,7 @@ import { TextInputComponent } from 'common/directives/text-input-component.direc
(blur)="focusChanged.emit({ inputElement: input, focused: false })">
`,
styles: [
':host {display:flex !important; width: 100%; height: 100%;}',
'.cloze-child {border: 1px solid #ccc; border-radius: 4px;}',
'input {width: 100%; height: 100%; padding: 0 2px; box-sizing: border-box}',
'input:hover {border: 1px solid currentColor;}',
......
......@@ -46,6 +46,7 @@ import { ToggleButtonElement } from 'common/models/elements/compound-elements/cl
</mat-button-toggle-group>
`,
styles: [`
:host {display:flex !important; width: 100%; height: 100%;}
.errors {
border: 2px solid #f44336 !important;
}
......
......@@ -8,6 +8,9 @@ import { AngularNodeViewComponent } from 'ngx-tiptap';
[elementModel]="node.attrs.model"
[matTooltip]="'ID: ' + node.attrs.model.id">
</aspect-button>
`
`,
styles: [
':host {display: inline-block;}'
]
})
export class ButtonNodeviewComponent extends AngularNodeViewComponent { }
......@@ -8,7 +8,10 @@ import { AngularNodeViewComponent } from 'ngx-tiptap';
[elementModel]="node.attrs.model"
[matTooltip]="'ID: ' + node.attrs.model.id">
</aspect-text-field-simple>
`
`,
styles: [
':host {display: inline-block;}'
]
})
export class TextFieldNodeviewComponent extends AngularNodeViewComponent {
}
......@@ -9,6 +9,9 @@ import { AngularNodeViewComponent } from 'ngx-tiptap';
[elementModel]="node.attrs.model"
[matTooltip]="'ID: ' + node.attrs.model.id">
</aspect-toggle-button>
`
`,
styles: [
':host {display: inline-block;}'
]
})
export class ToggleButtonNodeviewComponent extends AngularNodeViewComponent { }
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