Web: Common: FilterInput: Decreased the minimum size of the search field
This commit is contained in:
parent
8825610fb5
commit
a52f07e4e0
@ -89,7 +89,7 @@ class FilterInput extends React.Component {
|
|||||||
const { sortDirection, sortId, inputValue } = selectedFilterData;
|
const { sortDirection, sortId, inputValue } = selectedFilterData;
|
||||||
const sortData = getSortData();
|
const sortData = getSortData();
|
||||||
|
|
||||||
this.minWidth = 190;
|
this.minWidth = 120;
|
||||||
|
|
||||||
const filterValues = selectedFilterData ? this.getDefaultFilterData() : [];
|
const filterValues = selectedFilterData ? this.getDefaultFilterData() : [];
|
||||||
|
|
||||||
@ -358,7 +358,7 @@ class FilterInput extends React.Component {
|
|||||||
calcHiddenItemWidth = (item) => {
|
calcHiddenItemWidth = (item) => {
|
||||||
if (!item) return;
|
if (!item) return;
|
||||||
const numberOfLetters = item.groupLabel.length + item.label.length;
|
const numberOfLetters = item.groupLabel.length + item.label.length;
|
||||||
return numberOfLetters * 6.7 + 60; // 60 - sum of padding
|
return numberOfLetters * 6.5 + 60; // 60 - sum of padding
|
||||||
};
|
};
|
||||||
|
|
||||||
AddItems = (searchWidth) => {
|
AddItems = (searchWidth) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user