Skip to content

Commit 2a4f598

Browse files
updates
1 parent 529b58e commit 2a4f598

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/documentation/templates/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</div>
2828
<div class="buttons">
2929
REPLACE_BUTTONS
30-
<input placeholder="Search documentation" id="searchbar">
30+
<input placeholder="Search documentation" id="searchbar" disabled>
3131
<span id="search">REPLACE_SEARCHKEY</span>
3232
<div class="search"></div>
3333
</div>

src/documentation/templates/page.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,11 @@ dcmnt.addEventListener('DOMContentLoaded', () => {
373373
}
374374

375375
const sb = dcmnt.getElementById("searchbar");
376+
sb.style.cursor = 'text';
377+
sb.disabled = false;
376378
const sd = dcmnt.querySelector('.search');
377379
const sk = dcmnt.getElementById("search");
380+
sk.style.cursor = 'pointer';
378381
const updateSD = (toggle = false) => {
379382
let run = true;
380383
if (cooldown0) run = false; else {

src/documentation/templates/search.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#search, #searchbar {
2+
cursor: not-allowed;
3+
}
4+
15
.searchactive {
26
overflow-y: hidden;
37
}
@@ -35,6 +39,7 @@
3539
flex-direction: row;
3640
justify-content: flex-end;
3741
align-items: flex-start;
42+
white-space: nowrap;
3843
}
3944
.searchactive .search a strong {
4045
display: flex;

0 commit comments

Comments
 (0)