UI: Fixed updated mobile layout and show mobile edit panel
This commit is contained in:
parent
194a6a1fd3
commit
b2a1793f4d
@ -270,8 +270,8 @@ export class MobilePageItemRowComponent implements ControlValueAccessor, OnInit,
|
||||
|
||||
private updateModel() {
|
||||
this.modelValue.visible = this.mobilePageRowForm.get('visible').value;
|
||||
const label = this.mobilePageRowForm.get('label').value.trim();
|
||||
if (label) {
|
||||
const label = this.mobilePageRowForm.get('label').value;
|
||||
if (label?.trim()) {
|
||||
this.modelValue.label = label;
|
||||
} else {
|
||||
delete this.modelValue.label;
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
}
|
||||
.tb-editor {
|
||||
height: 400px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.tb-editor-buttons {
|
||||
height: 40px;
|
||||
|
||||
@ -59,7 +59,7 @@ export class EditorPanelComponent implements OnInit {
|
||||
resize: false,
|
||||
setup: (editor) => {
|
||||
editor.on('PostRender', function() {
|
||||
const container = editor.getContainer();
|
||||
const container = editor.getContainer().closest('.tb-popover-content');
|
||||
const uiContainer = document.querySelector('.tox.tox-tinymce-aux');
|
||||
container.parentNode.appendChild(uiContainer);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user