Skip to content

Commit e6eba09

Browse files
committed
Move the Layer Tree panel's New Folder and Delete icons into the options bar
1 parent 8940f80 commit e6eba09

File tree

1 file changed

+8
-27
lines changed

1 file changed

+8
-27
lines changed

frontend/src/components/panels/LayerTree.vue

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,16 @@
2121
:disabled="opacityNumberInputDisabled"
2222
/>
2323

24-
<Separator :type="'Related'" />
25-
26-
<PopoverButton>
24+
<!-- <PopoverButton>
2725
<h3>Compositing Options</h3>
2826
<p>The contents of this popover menu are coming soon</p>
29-
</PopoverButton>
30-
</LayoutRow>
31-
<LayoutRow class="button-bar">
32-
<LayoutRow></LayoutRow>
33-
<LayoutRow>
34-
<!-- TODO: Remember to make these tooltip input hints customized to macOS also -->
35-
<IconButton :action="createEmptyFolder" :icon="'NodeFolder'" title="New Folder (Ctrl+Shift+N)" :size="16" />
36-
<IconButton :action="deleteSelectedLayers" :icon="'Trash'" title="Delete Selected (Del)" :size="16" />
37-
</LayoutRow>
27+
</PopoverButton> -->
28+
29+
<Separator :type="'Section'" />
30+
31+
<!-- TODO: Remember to make these tooltip input hints customized to macOS also -->
32+
<IconButton :action="createEmptyFolder" :icon="'NodeFolder'" title="New Folder (Ctrl+Shift+N)" :size="24" />
33+
<IconButton :action="deleteSelectedLayers" :icon="'Trash'" title="Delete Selected (Del)" :size="24" />
3834
</LayoutRow>
3935
<LayoutRow class="layer-tree" :scrollableY="true">
4036
<LayoutCol class="list" ref="layerTreeList" @click="() => deselectAllLayers()" @dragover="(e) => draggable && updateInsertLine(e)" @dragend="() => draggable && drop()">
@@ -121,19 +117,6 @@
121117
}
122118
}
123119
124-
.button-bar {
125-
height: 24px;
126-
flex: 0 0 auto;
127-
justify-content: space-between;
128-
align-items: center;
129-
margin: 0 4px;
130-
131-
.layout-row {
132-
flex: 0 0 auto;
133-
gap: 4px;
134-
}
135-
}
136-
137120
.layer-tree {
138121
margin-top: 4px;
139122
// Crop away the 1px border below the bottom layer entry when it uses the full space of this panel
@@ -311,7 +294,6 @@ import { BlendMode, DisplayDocumentLayerTreeStructure, UpdateDocumentLayer, Laye
311294
import LayoutCol from "@/components/layout/LayoutCol.vue";
312295
import LayoutRow from "@/components/layout/LayoutRow.vue";
313296
import IconButton from "@/components/widgets/buttons/IconButton.vue";
314-
import PopoverButton from "@/components/widgets/buttons/PopoverButton.vue";
315297
import { SectionsOfMenuListEntries } from "@/components/widgets/floating-menus/MenuList.vue";
316298
import DropdownInput from "@/components/widgets/inputs/DropdownInput.vue";
317299
import NumberInput from "@/components/widgets/inputs/NumberInput.vue";
@@ -643,7 +625,6 @@ export default defineComponent({
643625
LayoutRow,
644626
LayoutCol,
645627
Separator,
646-
PopoverButton,
647628
NumberInput,
648629
IconButton,
649630
IconLabel,

0 commit comments

Comments
 (0)