diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-24 18:50:35 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-24 18:50:35 -0700 |
commit | e6718aaf7a44929320ef9d3068be66d28ebd1791 (patch) | |
tree | 4918fb516f99b85b90ffc813490280440b7d4d5a /modern | |
parent | 3a5ac46ec62b732227f46ed7671b1fc71ac2bff1 (diff) | |
download | trackermap-web-e6718aaf7a44929320ef9d3068be66d28ebd1791.tar.gz trackermap-web-e6718aaf7a44929320ef9d3068be66d28ebd1791.tar.bz2 trackermap-web-e6718aaf7a44929320ef9d3068be66d28ebd1791.zip |
Prevent filter overflow
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/reports/components/ColumnSelect.js | 1 | ||||
-rw-r--r-- | modern/src/reports/components/ReportFilter.js | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/components/ColumnSelect.js b/modern/src/reports/components/ColumnSelect.js index 8a79108e..d708c3d7 100644 --- a/modern/src/reports/components/ColumnSelect.js +++ b/modern/src/reports/components/ColumnSelect.js @@ -19,7 +19,6 @@ const ColumnSelect = ({ label={t('sharedColumns')} value={columns} onChange={(e) => setColumns(e.target.value)} - renderValue={(it) => it.length} multiple > {columnsArray diff --git a/modern/src/reports/components/ReportFilter.js b/modern/src/reports/components/ReportFilter.js index 7ec069cb..586ccc37 100644 --- a/modern/src/reports/components/ReportFilter.js +++ b/modern/src/reports/components/ReportFilter.js @@ -10,12 +10,13 @@ import dimensions from '../../common/theme/dimensions'; export const useFilterStyles = makeStyles((theme) => ({ filter: { - display: 'flex', + display: 'inline-flex', flexWrap: 'wrap', gap: theme.spacing(2), padding: theme.spacing(3, 2, 2), }, item: { + minWidth: 0, flex: `1 1 ${dimensions.filterFormWidth}`, }, buttons: { |