layout manager impr

This commit is contained in:
Yuri Kuznetsov
2025-06-27 20:01:59 +03:00
parent de92d50386
commit fc864fbce9
3 changed files with 18 additions and 2 deletions

View File

@@ -64,6 +64,14 @@
float: left;
}
#layout {
.cells {
.cell {
user-select: none;
}
}
}
#layout ul.panels ul.cells > li[data-full-width="true"] {
width: calc(100% - var(--10px));
}

View File

@@ -409,6 +409,7 @@ class LayoutGridView extends LayoutBaseView {
update: () => {
this.setIsChanged();
},
cursor: 'grabbing',
});
// noinspection JSUnresolvedReference
@@ -420,6 +421,7 @@ class LayoutGridView extends LayoutBaseView {
update: () => {
this.setIsChanged();
},
cursor: 'grabbing',
});
// noinspection JSUnresolvedReference
@@ -428,8 +430,13 @@ class LayoutGridView extends LayoutBaseView {
const $li = $('#layout ul.cells > li');
// noinspection JSValidateTypes
$li.draggable({revert: 'invalid', revertDuration: 200, zIndex: 10})
.css('cursor', 'pointer');
$li.draggable({
revert: 'invalid',
revertDuration: 200,
zIndex: 10,
cursor: 'grabbing',
})
.css('cursor', '');
$li.droppable().droppable('destroy');

View File

@@ -88,6 +88,7 @@ class LayoutRowsView extends LayoutBaseView {
afterRender() {
$('#layout ul.enabled, #layout ul.disabled').sortable({
cursor: 'grabbing',
connectWith: '#layout ul.connected',
update: e => {
if (!$(e.target).hasClass('disabled')) {