Skip to content

Commit 5bd8d0b

Browse files
committed
Use simpler CSS like it's 2015
1 parent 41f183d commit 5bd8d0b

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

app/styles/ui/_split.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,7 @@
9090
overflow-y: auto;
9191
}
9292

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;
93+
/* There is better ways to do this, but they create more complicated CSS */
94+
.split-panel-hd-row .spacer {
95+
flex: 1 1 100%;
9996
}

app/templates/application.hbs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
<div class="split-panel-hd split-panel-hd-row">
4949
<div id="toolbar"></div>
5050
{{#unless this.layout.inspectorExpanded}}
51-
<ObjectInspector::Toggle class="end" />
51+
<span class="spacer">{{!-- Spacer to shift the toggle to the end of the header --}}</span>
52+
<ObjectInspector::Toggle />
5253
{{/unless}}
5354
</div>
5455

@@ -66,8 +67,8 @@
6667
@width={{this.inspectorWidth}}
6768
>
6869
<div class="split-panel-hd split-panel-hd-row">
69-
<ObjectInspector::Toggle class="end" />
70-
{{!-- TODO: Create a target to place additional buttons here --}}
70+
<span class="spacer"></span>
71+
<ObjectInspector::Toggle />
7172
</div>
7273
<ObjectInspector
7374
@popMixinDetails={{this.popMixinDetails}}

0 commit comments

Comments
 (0)