Skip to content

Commit

Permalink
fix(FilterBar): search field within dialog expands to available width
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas742 committed Aug 3, 2020
1 parent ed0944e commit fef8a8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const styles = {
maxHeight: '70vh'
},
header: {
width: '100%',
padding: '0.25rem 1rem 0 1rem',
'& *': {
margin: '0.25rem 0 0.25rem 0'
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/components/FilterBar/FilterDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const FilterDialog = (props) => {

const renderHeader = useCallback(
() => (
<FlexBox direction={FlexBoxDirection.Column} className={classes.header}>
<FlexBox direction={FlexBoxDirection.Column} alignItems={FlexBoxAlignItems.Center} className={classes.header}>
<Title level={TitleLevel.H4}>Filters</Title>
{showSearch && (
<Input placeholder={searchForFiltersText} onInput={handleSearch} icon={<Icon name="search" />} />
Expand Down

0 comments on commit fef8a8b

Please sign in to comment.