Skip to content

Commit 8425aed

Browse files
refactor(form): complete location-field adjustments
1 parent 583898a commit 8425aed

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Diff for: lib/components/form/intermediate-place-field.tsx

+5-8
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import * as mapActions from '../../actions/map'
1515

1616
import connectLocationField from './connect-location-field'
1717

18+
// TODO: Merge with connected-location-field.js
1819
const StyledIntermediatePlace = styled(LocationField)`
1920
width: 100%;
2021
2122
${DropdownContainer} {
22-
display: table-cell;
23-
vertical-align: middle;
24-
width: 1%;
23+
display: grid;
24+
grid-template-columns: 30px 1fr 30px;
2525
}
2626
2727
${FormGroup} {
@@ -31,19 +31,16 @@ const StyledIntermediatePlace = styled(LocationField)`
3131
}
3232
3333
${Input} {
34-
display: table-cell;
3534
padding: 6px 12px;
36-
width: 100%;
3735
}
3836
3937
${InputGroup} {
4038
width: 100%;
4139
}
4240
4341
${InputGroupAddon} {
44-
display: table-cell;
45-
vertical-align: middle;
46-
width: 1%;
42+
align-self: baseline;
43+
justify-self: center;
4744
}
4845
4946
${MenuItemA} {

0 commit comments

Comments
 (0)