docs: search mode

This commit is contained in:
EnixCoda 2021-02-04 21:25:57 +08:00
parent 66312dbc0f
commit 69a8436e7b
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
2 changed files with 3 additions and 3 deletions

View file

@ -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>

View file

@ -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);