Skip to content

Commit 0a40709

Browse files
committed
Use component title in place of version selector
1 parent 0d43844 commit 0a40709

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/css/nav.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ html.is-clipped--nav {
6969
}
7070
}
7171

72+
.nav-product {
73+
height: 2.5rem;
74+
padding: 0.5rem 1.5rem;
75+
box-shadow: 0 1px 0 var(--nav-panel-divider-color);
76+
}
77+
78+
.nav-product .nav-product-name {
79+
font-size: 1rem;
80+
font-weight: 700;
81+
/* color: var(--color-docs); */
82+
}
83+
7284
.nav-panel-menu {
7385
overflow-y: scroll;
7486
display: flex;

src/partials/nav-selectors.hbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
</select>
2525
</div>
2626
</div>
27+
{{else}}
28+
{{#unless (or @root.page.attributes.nav-hide-site-title (eq @root.page.attributes.theme 'cheat-sheet'))}}
29+
{{#with @root.page.componentVersion}}
30+
<div class="nav-product">
31+
<span class="nav-product-name">{{{ ./title }}}</span>
32+
</div>
33+
{{/with}}
34+
{{/unless}}
35+
2736
{{/if}}
2837

2938
{{#if (eq page.attributes.theme 'cheat-sheet') }}

0 commit comments

Comments
 (0)