mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-29 07:06:04 +02:00
Fix styling issue in panels
Add lang attribute to more text (re: #7963)
This commit is contained in:
+1
-1
@@ -4284,7 +4284,7 @@ img.tile-debug {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.panel-content li span {
|
||||
.panel-content li span:not(.localized-text) {
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
margin: 0 8px;
|
||||
|
||||
@@ -144,10 +144,9 @@ export function uiPanelMeasurement(context) {
|
||||
}
|
||||
|
||||
if (length) {
|
||||
var lengthLabel = t('info_panels.measurement.' + (closed ? 'perimeter' : 'length'));
|
||||
list
|
||||
.append('li')
|
||||
.html(lengthLabel + ':')
|
||||
.html(t.html('info_panels.measurement.' + (closed ? 'perimeter' : 'length')) + ':')
|
||||
.append('span')
|
||||
.html(displayLength(length, isImperial));
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ export function uiSuccess(context) {
|
||||
.attr('href', d.url)
|
||||
.html(t.html(`community.${d.id}.name`));
|
||||
|
||||
let descriptionHTML = t(`community.${d.id}.description`, replacements);
|
||||
let descriptionHTML = t.html(`community.${d.id}.description`, replacements);
|
||||
|
||||
if (d.type === 'reddit') { // linkify subreddits #4997
|
||||
descriptionHTML = descriptionHTML
|
||||
|
||||
Reference in New Issue
Block a user