Skip to content

Commit b395e0d

Browse files
committed
Move private toggle up in the sidebar
1 parent 395bcad commit b395e0d

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Diff for: app/components/table-of-contents.hbs

+4-4
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>

Diff for: app/styles/app.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ li.toc-heading:first-child {
9191
margin-top: 0;
9292
}
9393

94+
.toc-private-toggle {
95+
display: block;
96+
margin-top: var(--spacing-2);
97+
}
98+
9499
a.class-field-description--link {
95100
margin-left: 12px;
96101
vertical-align: middle;
@@ -109,8 +114,6 @@ a.class-field-description--link:hover svg {
109114
fill: var(--color-brand);
110115
}
111116

112-
113-
114117
.parameter, .return {
115118
display: flex;
116119
gap: var(--spacing-1);

0 commit comments

Comments
 (0)