mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 23:15:46 +01:00
🔀 Merge pull request #271 from ajnart/searchBar
✨ Adds query placeholder and autoFocus (#267 #268)
This commit is contained in:
@@ -28,6 +28,15 @@ export default function CommonSettings(args: any) {
|
||||
<Group direction="column" grow>
|
||||
<Group grow direction="column" spacing={0}>
|
||||
<Text>Search engine</Text>
|
||||
<Text
|
||||
style={{
|
||||
fontSize: '0.75rem',
|
||||
color: 'gray',
|
||||
marginBottom: '0.5rem',
|
||||
}}
|
||||
>
|
||||
Tip: %s can be used as a placeholder for the query.
|
||||
</Text>
|
||||
<SegmentedControl
|
||||
fullWidth
|
||||
title="Search engine"
|
||||
@@ -53,7 +62,7 @@ export default function CommonSettings(args: any) {
|
||||
{searchUrl === 'Custom' && (
|
||||
<TextInput
|
||||
label="Query URL"
|
||||
placeholder="Custom query url"
|
||||
placeholder="Custom query URL"
|
||||
value={customSearchUrl}
|
||||
onChange={(event) => {
|
||||
setCustomSearchUrl(event.currentTarget.value);
|
||||
|
||||
Reference in New Issue
Block a user