aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/components
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-23 09:00:08 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-23 09:00:08 -0700
commit7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1 (patch)
tree893861c605696516c1c4c3d06179ace6376f2765 /modern/src/common/components
parentb98137ab304e8068484926eb31b77bd727a6407d (diff)
downloadtrackermap-web-7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1.tar.gz
trackermap-web-7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1.tar.bz2
trackermap-web-7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1.zip
Fix select field labels
Diffstat (limited to 'modern/src/common/components')
-rw-r--r--modern/src/common/components/LinkField.js3
-rw-r--r--modern/src/common/components/SelectField.js3
2 files changed, 4 insertions, 2 deletions
diff --git a/modern/src/common/components/LinkField.js b/modern/src/common/components/LinkField.js
index 308ee585..876fa66f 100644
--- a/modern/src/common/components/LinkField.js
+++ b/modern/src/common/components/LinkField.js
@@ -69,9 +69,10 @@ const LinkField = ({
if (items && linked) {
return (
- <FormControl margin={margin} variant={variant}>
+ <FormControl margin={margin} fullWidth>
<InputLabel>{label}</InputLabel>
<Select
+ label={label}
multiple
value={linked}
onChange={onChange}
diff --git a/modern/src/common/components/SelectField.js b/modern/src/common/components/SelectField.js
index 18b3afbb..649bde16 100644
--- a/modern/src/common/components/SelectField.js
+++ b/modern/src/common/components/SelectField.js
@@ -33,9 +33,10 @@ const SelectField = ({
if (items) {
return (
- <FormControl margin={margin} variant={variant}>
+ <FormControl margin={margin} fullWidth>
<InputLabel>{label}</InputLabel>
<Select
+ label={label}
multiple={multiple}
value={value}
onChange={onChange}