mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Input: Width prop (#23615)
* Add width property * Remove unused import * Spelling mistake * Add width to interface * Make width optional * Remove size * Update snapshot * Remove size from places * Add size prop for button * Update width * Update snapshots
This commit is contained in:
@@ -11,6 +11,7 @@ interface SearchFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
|
||||
onChange: (query: string) => void;
|
||||
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
||||
clearable?: boolean;
|
||||
width?: number;
|
||||
}
|
||||
|
||||
const getSearchFieldStyles = (theme: GrafanaTheme) => ({
|
||||
|
||||
@@ -58,7 +58,6 @@ export const SearchResultsFilter: FC<Props> = ({
|
||||
) : (
|
||||
<HorizontalGroup spacing="md">
|
||||
<Select
|
||||
size="sm"
|
||||
placeholder="Filter by starred"
|
||||
key={starredFilterOptions?.find(f => f.value === selectedStarredFilter)?.label}
|
||||
options={starredFilterOptions}
|
||||
@@ -66,7 +65,6 @@ export const SearchResultsFilter: FC<Props> = ({
|
||||
/>
|
||||
|
||||
<TagFilter
|
||||
size="sm"
|
||||
placeholder="Filter by tag"
|
||||
tags={selectedTagFilter}
|
||||
tagOptions={searchSrv.getDashboardTags}
|
||||
|
||||
Reference in New Issue
Block a user