mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Fix some RTL layout issues
This commit is contained in:
+2
-5
@@ -1877,13 +1877,13 @@ a.hide-toggle {
|
||||
flex: 0 1 auto;
|
||||
width: 80px;
|
||||
}
|
||||
.form-field-input-maxspeed > input:first-of-type {
|
||||
.ideditor[dir='ltr'] .form-field-input-maxspeed > input:first-of-type {
|
||||
border-radius: 0 0 0 4px;
|
||||
}
|
||||
.ideditor[dir='rtl'] .form-field-input-maxspeed > input:first-of-type {
|
||||
border-radius: 0 0 4px 0;
|
||||
}
|
||||
.form-field-input-maxspeed > input:last-of-type {
|
||||
.ideditor[dir='ltr'] .form-field-input-maxspeed > input:last-of-type {
|
||||
border-left: 0;
|
||||
border-radius: 0 0 4px 0;
|
||||
}
|
||||
@@ -4458,9 +4458,6 @@ img.tile-debug {
|
||||
color: #ccc;
|
||||
top: 0.45em;
|
||||
}
|
||||
.ideditor[dir='rtl'] .scale-block .scale-text {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.scale-block .scale path {
|
||||
fill: none;
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ export function uiScale(context) {
|
||||
.attr('d', 'M0.5,0.5v' + tickHeight + 'h' + scale.px + 'v-' + tickHeight);
|
||||
|
||||
selection.select('.scale-text')
|
||||
.style('left', (scale.px + 16) + 'px')
|
||||
.style(localizer.textDirection() === 'ltr' ? 'left' : 'right', (scale.px + 16) + 'px')
|
||||
.text(scale.text);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user