aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-24 18:50:35 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-24 18:50:35 -0700
commite6718aaf7a44929320ef9d3068be66d28ebd1791 (patch)
tree4918fb516f99b85b90ffc813490280440b7d4d5a /modern/src
parent3a5ac46ec62b732227f46ed7671b1fc71ac2bff1 (diff)
downloadtrackermap-web-e6718aaf7a44929320ef9d3068be66d28ebd1791.tar.gz
trackermap-web-e6718aaf7a44929320ef9d3068be66d28ebd1791.tar.bz2
trackermap-web-e6718aaf7a44929320ef9d3068be66d28ebd1791.zip
Prevent filter overflow
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/reports/components/ColumnSelect.js1
-rw-r--r--modern/src/reports/components/ReportFilter.js3
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: {