Skip to content

Commit a7b0ebc

Browse files
committed
In documentation, hide about section when searching
This commit hides the about section when the search bar is not empty, making it more discoverable to users that search is indeed working and they should look in the options section.
1 parent ee2bed9 commit a7b0ebc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
</select>
8282
</div>
8383
</div>
84-
<div v-html="aboutHtml"></div>
84+
<div v-if="isSearching" v-html="aboutHtml" id="about"></div>
8585
<div v-html="configurationAboutHtml"></div>
8686
<div v-html="outputHtml"></div>
8787
</article>
@@ -114,6 +114,10 @@
114114
scrolledOnce: false,
115115
},
116116
asyncComputed: {
117+
async isSearching() {
118+
// returns true if this.searchCondition contains text, false otherwise.
119+
return !this.searchCondition.trim()
120+
},
117121
async updateVersion() {
118122
let latest;
119123
try {

0 commit comments

Comments
 (0)