Skip to content

Commit f449b78

Browse files
committed
refactor: search field is moved to the top menu
because results from algolia dropdown were cropped in sidebar (by sidebar's width)
1 parent ab90848 commit f449b78

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

themes/doc-theme/layouts/partials/menu.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
style="overflow-y: hidden; overflow-x: hidden;margin-top:70px;"
77
>
88

9-
<v-container class="ma-0 pa-0 elevation-1">
10-
11-
<v-text-field
12-
style="width: 100%;"
13-
class="grey lighten-5 mt-0 mr-2 pa-3 ma-0 mono algolia-search-field"
14-
light
15-
hide-details
16-
append-icon="search"
17-
label="Search"
18-
></v-text-field>
19-
20-
</v-container>
21-
229
<div class="fancyScroll pa-0 ma-0" style="overflow-y: scroll; overflow-x: hidden;
2310
max-height: 100%;" >
2411

themes/doc-theme/layouts/partials/toolbar.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
{{ .Page.Title }}
1818
</span>
1919

20+
<v-text-field
21+
style="max-width: 650px"
22+
class="ml-3 algolia-search-field"
23+
light
24+
hide-details
25+
label="Search the docs..."
26+
solo
27+
append-icon="search"
28+
></v-text-field>
2029

2130
<v-spacer></v-spacer>
2231
{{ if eq .Section "firmwareapi"}}

0 commit comments

Comments
 (0)