update breakpoint for mobile-ifying search

This commit is contained in:
John Mitchell 2020-01-13 16:05:01 -05:00
parent 3684975ef9
commit edc65cdc36
3 changed files with 4 additions and 3 deletions

View File

@ -67,7 +67,7 @@ class DataListToolbar extends React.Component {
<DataToolbar
id={`${qsConfig.namespace}-list-toolbar`}
clearAllFilters={clearAllFilters}
collapseListedFiltersBreakpoint="xl"
collapseListedFiltersBreakpoint="lg"
>
<DataToolbarContent>
{showSelectAll && (
@ -83,7 +83,7 @@ class DataListToolbar extends React.Component {
<DataToolbarSeparator variant="separator" />
</DataToolbarGroup>
)}
<DataToolbarToggleGroup toggleIcon={<SearchIcon />} breakpoint="xl">
<DataToolbarToggleGroup toggleIcon={<SearchIcon />} breakpoint="lg">
<DataToolbarItem>
<Search
qsConfig={qsConfig}

View File

@ -204,7 +204,7 @@ class Search extends React.Component {
}
isOpen={isSearchDropdownOpen}
dropdownItems={searchDropdownItems}
style={{ width: '100%' }}
style={{ width: '100%', maxWidth: '100px' }}
/>
) : (
<NoOptionDropdown>{searchColumnName}</NoOptionDropdown>

View File

@ -135,6 +135,7 @@ class Sort extends React.Component {
onSelect={this.handleDropdownSelect}
direction={up}
isOpen={isSortDropdownOpen}
style={{ width: '100%', maxWidth: '100px' }}
toggle={
<DropdownToggle
id="awx-sort"