Fix outliner line guide offset

This commit is contained in:
JannisX11 2024-09-26 00:09:58 +02:00
parent 8cf8f9ae03
commit 310bab76a4
2 changed files with 3 additions and 3 deletions

View File

@ -474,6 +474,7 @@
}
#cubes_list .outliner_line_guide {
position: absolute;
left: calc(var(--indentation) * var(--indentation-offset) - 1px);
top: -4px;
bottom: 4px;
width: 4px;

View File

@ -1406,11 +1406,10 @@ Interface.definePanels(function() {
var VueTreeItem = Vue.extend({
template:
'<li class="outliner_node" v-bind:class="{ parent_li: node.children && node.children.length > 0}" v-bind:id="node.uuid">' +
`<li class="outliner_node" v-bind:class="{ parent_li: node.children && node.children.length > 0}" v-bind:id="node.uuid" v-bind:style="{'--indentation': indentation}">` +
`<div
class="outliner_object"
v-bind:class="{ cube: node.type === 'cube', group: node.type === 'group', selected: node.selected }"
v-bind:style="{'--indentation': indentation}"
@contextmenu.prevent.stop="node.showContextMenu($event)"
@click="node.select($event, true)"
:title="node.title"
@ -1437,7 +1436,7 @@ Interface.definePanels(function() {
//Other Entries
'<ul v-if="node.isOpen">' +
'<vue-tree-item v-for="item in visible_children" :node="item" :depth="depth + 1" :options="options" :key="item.uuid"></vue-tree-item>' +
`<div class="outliner_line_guide" v-if="node.constructor.selected == node" v-bind:style="{left: 'calc(var(--indentation) * ' + indentation + ')'}"></div>` +
`<div class="outliner_line_guide" v-if="node.constructor.selected == node"></div>` +
'</ul>' +
'</li>',
props: {