* [bug#50601,done,0.2h] modify the margin of listitem.

This commit is contained in:
wangzemei
2024-06-05 10:32:26 +08:00
parent d218bf9d66
commit 02b86e724d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
.think-node-menu .tree:not(.is-nested-root)>.tree-item:not(.is-nested) .listitem {margin-left: calc((-2)*var(--space));}
.think-node-menu .tree:not(.is-nested-root) .tree-item.is-nested {padding-left: calc(7*var(--space));}
.think-node-menu .tree:not(.is-nested-root) .tree-item:not(.is-nested) {padding-left: 42px;}
.think-node-menu .tree .tree-item .item-content-thinmory {position: relative; min-height: calc(8*var(--space)); margin-right: 2px;}
.think-node-menu .tree .tree-item .item-content-thinmory {position: relative; min-height: calc(8*var(--space)); margin-right: 2px; margin-bottom: 6px;}
.think-node-menu .tree .tree-item .item-content-thinmory>.form-control {position: absolute; top: 0; left: 0; z-index: 2;}
.has-sidebar .think-node-menu>.toggle-btn.is-collapsed .icon:before {content: "\e931";}
+1 -1
View File
@@ -83,7 +83,7 @@ window.addQuestion = function(stepID, parentID, type, questionType = '')
const {wizard, parent = 0} = $element.data();
const level = parent == parentID ? $element.data('level') : $element.data('level') + 1;
const style = `style="margin-left: calc(${parent == parentID ? 12 : 3} * (-4px)); padding-left: 12px;"`;
const style = `style="margin-bottom: 6px; margin-left: calc(${parent == parentID ? 12 : 3} * (-4px)); padding-left: 12px;"`;
const className = parent == parentID ? '' : 'mt-2';
const $title = `<li class="tree-item tree-item-uncreated ${className}"><div class="listitem item-inner tree-item-inner selected text-primary font-bold" ${style}>${untitledLangs[type]}</div></li>`;