Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
startpage fixed misaligned input search field
Browse files Browse the repository at this point in the history
  • Loading branch information
Yimche committed Dec 14, 2023
1 parent 16a53e2 commit 57718a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion startpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="head">
<div class="search-container">
<span>> </span>
<input type="search" size="1" value="" oninput="this.style.width = (this.value.length) + 'ch';" onkeypress="handleKeyPress(event)" autofocus>
<input type="search" value=' ' oninput="this.style.width = (this.value.length) + 'ch';" onkeypress="handleKeyPress(event)" autofocus>
<span class="blinking">_</span>
</div>
<div id="welcome"></div>
Expand Down
2 changes: 2 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ body.startpage {
outline: none;
caret-color: transparent;
box-sizing: unset;
padding-left: 1ch;
width: 0px;
}

::placeholder {
Expand Down

0 comments on commit 57718a3

Please sign in to comment.