Fix styling issue in panels

Add lang attribute to more text (re: #7963)
This commit is contained in:
Quincy Morgan
2020-09-22 15:11:12 -04:00
parent 1e8c17d0b0
commit b92f0a6d09
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -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;
+1 -2
View File
@@ -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));
}
+1 -1
View File
@@ -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