mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Broken notifications in non-english locales
This commit is contained in:
parent
797936d2c5
commit
38064c5776
@ -102,7 +102,11 @@ createWidget('notification-item', {
|
|||||||
let title = I18n.t(`notifications.alt.${notName}`);
|
let title = I18n.t(`notifications.alt.${notName}`);
|
||||||
let icon = iconNode(`notification.${notName}`, { title });
|
let icon = iconNode(`notification.${notName}`, { title });
|
||||||
let text = emojiUnescape(this.text(notificationType, notName));
|
let text = emojiUnescape(this.text(notificationType, notName));
|
||||||
let html = new RawHtml({ html: `<p>${text}</p>` });
|
|
||||||
|
// We can use a `<p>` tag here once other languages have fixed their HTML
|
||||||
|
// translations.
|
||||||
|
let html = new RawHtml({ html: `<div>${text}</div>` });
|
||||||
|
|
||||||
let contents = [ icon, html ];
|
let contents = [ icon, html ];
|
||||||
|
|
||||||
const href = this.url();
|
const href = this.url();
|
||||||
|
@ -214,6 +214,13 @@
|
|||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This is until other languages remove the HTML from within
|
||||||
|
// notifications. It can then be removed
|
||||||
|
div i.fa {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
span { color: $primary; }
|
span { color: $primary; }
|
||||||
&:hover { background-color: $highlight-medium; }
|
&:hover { background-color: $highlight-medium; }
|
||||||
a { padding: 0; }
|
a { padding: 0; }
|
||||||
|
Loading…
Reference in New Issue
Block a user