mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
docs: search mode
This commit is contained in:
parent
66312dbc0f
commit
69a8436e7b
2 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ export function SearchBar({ onSearch, onFocus, value }: Props) {
|
|||
error: searchMode === 'regex' && !isValidRegexpSource(value),
|
||||
})}
|
||||
aria-label="search files"
|
||||
placeholder={`Search files (${searchMode === 'regex' ? 'use RegExp' : 'match sequence'})`}
|
||||
placeholder={`Search files (${searchMode === 'regex' ? 'use RegExp' : 'match path'})`}
|
||||
onChange={({ target: { value } }) => onSearch(value)}
|
||||
value={value}
|
||||
/>
|
||||
|
|
@ -46,7 +46,7 @@ export function SearchBar({ onSearch, onFocus, value }: Props) {
|
|||
}}
|
||||
aria-label="Toggle search mode"
|
||||
>
|
||||
{searchMode === 'regex' ? '.*?' : 'Seq'}
|
||||
{searchMode === 'regex' ? '.*?' : 'path'}
|
||||
</Label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -456,7 +456,7 @@ $minimal-z-index: max($github-header-z-index, $github-pull-request-float-header-
|
|||
border-radius: 0; // its rounded corner not match with nearby elements
|
||||
color: var(--gitako-text-primary);
|
||||
background: var(--gitako-bg-canvas);
|
||||
padding-right: 32px; // save space for actions
|
||||
padding-right: 40px; // save space for actions
|
||||
|
||||
&.error {
|
||||
border-color: var(--gitako-border-danger);
|
||||
|
|
|
|||
Loading…
Reference in a new issue