From 8354db5b03c41a2ec1cd8cc4f8301c999c6166d8 Mon Sep 17 00:00:00 2001 From: Infi Date: Mon, 3 Feb 2025 22:20:50 +0100 Subject: [PATCH] - Fix line break with ExtraChat channel names --- ChatTwo/Ui/ChatLogWindow.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ChatTwo/Ui/ChatLogWindow.cs b/ChatTwo/Ui/ChatLogWindow.cs index 7dca733..7b450ee 100644 --- a/ChatTwo/Ui/ChatLogWindow.cs +++ b/ChatTwo/Ui/ChatLogWindow.cs @@ -814,11 +814,11 @@ public sealed class ChatLogWindow : Window else if (Plugin.ExtraChat.ChannelOverride is var (overrideName, _)) { // If the current channel is not an ExtraChat Linkshell add a warning for the user - var warning = new TextChunk(ChunkSource.None, null, activeTab.CurrentChannel.Channel.IsExtraChatLinkshell() - ? "" - : $"(Warning: {activeTab.CurrentChannel.Channel.ToChatType().Name()})"); + var warning = activeTab.CurrentChannel.Channel.IsExtraChatLinkshell() + ? "" + : $" (Warning: {activeTab.CurrentChannel.Channel.ToChatType().Name()})"; - channelNameChunks = [new TextChunk(ChunkSource.None, null, overrideName), warning]; + channelNameChunks = [new TextChunk(ChunkSource.None, null, $"{overrideName}{warning}")]; } else if (ScreenshotMode && activeTab.CurrentChannel.Channel is InputChannel.Tell && activeTab.CurrentChannel.TellTarget != null) {