Fix newlines in stream title causing text in header to go out of bounds (#2755)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
- Minor: Hosting messages are now clickable. (#2655)
|
- Minor: Hosting messages are now clickable. (#2655)
|
||||||
- Minor: Messages held by automod are now shown to the user. (#2626)
|
- Minor: Messages held by automod are now shown to the user. (#2626)
|
||||||
|
- Bugfix: Strip newlines from stream titles to prevent text going off of split header (#2755)
|
||||||
- Bugfix: Automod messages now work properly again. (#2682)
|
- Bugfix: Automod messages now work properly again. (#2682)
|
||||||
- Bugfix: `Login expired` message no longer highlights all tabs. (#2735)
|
- Bugfix: `Login expired` message no longer highlights all tabs. (#2735)
|
||||||
- Bugfix: Fix a deadlock that would occur during user badge loading. (#1704, #2756)
|
- Bugfix: Fix a deadlock that would occur during user badge loading. (#1704, #2756)
|
||||||
|
|||||||
@@ -168,7 +168,9 @@ namespace {
|
|||||||
if (settings.headerGame && !s.game.isEmpty())
|
if (settings.headerGame && !s.game.isEmpty())
|
||||||
title += " - " + s.game;
|
title += " - " + s.game;
|
||||||
if (settings.headerStreamTitle && !s.title.isEmpty())
|
if (settings.headerStreamTitle && !s.title.isEmpty())
|
||||||
title += " - " + s.title;
|
{
|
||||||
|
title += " - " + s.title.simplified();
|
||||||
|
}
|
||||||
|
|
||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user