Skip to content

Commit edf22c0

Browse files
MinThaMiekategengler
authored andcommitted
Move private toggle up in the sidebar
1 parent c219aa8 commit edf22c0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

app/components/table-of-contents.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<label class='toc-private-toggle'>
2+
<input type='checkbox' checked={{@showPrivateClasses}} onchange={{@togglePrivateClasses}} class='private-deprecated-toggle' />
3+
Show Private / Deprecated packages
4+
</label>
15
<ul class='table-of-contents '>
26
<li class='toc-item toc-group' data-test-toc-title="packages">
37
Packages
@@ -38,7 +42,3 @@
3842
</ul>
3943
</li>
4044
</ul>
41-
<label class='toc-private-toggle'>
42-
<input type='checkbox' checked={{@showPrivateClasses}} onchange={{@togglePrivateClasses}} class='private-deprecated-toggle' />
43-
Show Private / Deprecated
44-
</label>

app/styles/app.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ li.toc-heading:first-child {
9393
margin-top: 0;
9494
}
9595

96+
.toc-private-toggle {
97+
display: block;
98+
margin-top: var(--spacing-2);
99+
}
100+
96101
a.class-field-description--link {
97102
margin-left: 12px;
98103
vertical-align: middle;

0 commit comments

Comments
 (0)