Skip to content

Commit

Permalink
Make result more compact
Browse files Browse the repository at this point in the history
Use std color for the url
Keep the keywords when closing and reopening the search dialog
  • Loading branch information
emmanuel-keller committed Oct 13, 2023
1 parent 3b6198d commit 6046467
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/theme/SearchBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function SearchBar(): JSX.Element | null {
</a>
<dialog className={styles.modal} ref={dialogRef}>
<form method="dialog">
<input className={styles.input} onChange={(e)=>handleChange(e.target.value)} type="text" placeholder="Search.." />
<input className={styles.input} onChange={(e)=>handleChange(e.target.value)} type="text" placeholder="Search.." value={keywords} />
</form>
{(results && results.length > 0) ? (
<div className={styles.results}>
Expand Down
3 changes: 1 addition & 2 deletions src/theme/SearchBar/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
}

.result {
padding: 2em 2em;
padding: 1em 1em;
display: block;
transition: background .1s ease;
}
Expand All @@ -82,7 +82,6 @@
.url {
font-size: 0.75em;
margin-bottom: 0;
color: #363e4c;
margin-bottom: 0.75em;
}

Expand Down

0 comments on commit 6046467

Please sign in to comment.