Skip to content

Commit a38d7a1

Browse files
authored
Fix roadheight field width (openstreetmap#10175)
Recent versions of Firefox give input fields a greater intrinsic width that causes roadheight fields to overflow the container. Constrain these input fields to an initial width of zero; they’ll grow proportionally as part of the flexbox.
1 parent 31f5477 commit a38d7a1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
4949
* Upgrade closed ways with `traffic_calming=island` to `area:highway=traffic_calming` ([id-tagging-schema#1162])
5050
#### :bug: Bugfixes
5151
* Prevent (route) relations from getting corrupted while splitting their way members in certain conditions ([#7653], [#8415])
52+
* Fix overflowing UI input elements of maxheight field when in imperial units mode on Firefox ([#10175], thanks [@1ec5])
5253
#### :earth_asia: Localization
5354
#### :hourglass: Performance
5455
#### :mortar_board: Walkthrough / Help
@@ -62,6 +63,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
6263
[#9439]: https://github.com/openstreetmap/iD/issues/9439
6364
[#10135]: https://github.com/openstreetmap/iD/issues/10135
6465
[#10145]: https://github.com/openstreetmap/iD/issues/10145
66+
[#10175]: https://github.com/openstreetmap/iD/pull/10175
6567
[id-tagging-schema#1162]: https://github.com/openstreetmap/id-tagging-schema/issues/1162
6668
[@Sushil642]: https://github.com/Sushil642
6769
[@mattiapezzotti]: https://github.com/mattiapezzotti

css/80_app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,7 @@ input.date-selector {
20552055
.form-field-input-roadheight input.roadheight-secondary-number,
20562056
.form-field-input-roadspeed input.roadspeed-number {
20572057
flex-basis: 0;
2058+
width: 0;
20582059
}
20592060
.form-field-input-roadheight input.roadheight-unit,
20602061
.form-field-input-roadheight input.roadheight-secondary-unit {

0 commit comments

Comments
 (0)