Skip to content

Commit 1cfefeb

Browse files
committed
Move ObjectInspector:Toggle in new place
Given that the existing header for the inspector is already quite full, squeezing it in there didn't make much sense
1 parent 23c1ee2 commit 1cfefeb

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

app/styles/ui/_split.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969

7070
/* Custom panels */
7171

72+
.split-panel-hd-row {
73+
flex-flow: row;
74+
}
75+
7276
.split-panel-sidebar-1 .split-panel-bd {
7377
background: var(--base01);
7478
}
@@ -85,3 +89,11 @@
8589
.split-main > .split-panel-sidebar-1 > .split-panel-bd {
8690
overflow-y: auto;
8791
}
92+
93+
.split-panel-hd-row .end {
94+
margin-inline-start: auto;
95+
}
96+
97+
.split-panel-hd-row:has(:only-child.end) {
98+
justify-content: end;
99+
}

app/templates/application.hbs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@
4545
</Ui::DraggableColumn>
4646

4747
<div class="split-panel">
48-
<div class="split-panel-hd">
48+
<div class="split-panel-hd split-panel-hd-row">
4949
<div id="toolbar"></div>
50-
<ObjectInspector::Toggle class="align-end" />
50+
{{#if (not this.layoutService.inspectorExpanded)}}
51+
<ObjectInspector::Toggle class="end" />
52+
{{/if}}
5153
</div>
5254

5355
<div class="split-panel-bd" {{did-insert this.setupContentElement}}>
@@ -63,6 +65,10 @@
6365
@side="right"
6466
@width={{this.inspectorWidth}}
6567
>
68+
<div class="split-panel-hd split-panel-hd-row">
69+
<ObjectInspector::Toggle class="end" />
70+
{{!-- TODO: Create a target to place additional buttons here --}}
71+
</div>
6672
<ObjectInspector
6773
@popMixinDetails={{this.popMixinDetails}}
6874
@model={{this.mixinStack}}

0 commit comments

Comments
 (0)