Don't clip ban reason text (#12925)

This commit is contained in:
metalgearsloth
2022-12-08 13:05:18 +11:00
committed by GitHub
parent 0454d7cb5d
commit 749b062452
2 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@
<Label Name="ConnectStatus" StyleClasses="LabelSubText" Align="Center" />
</BoxContainer>
<BoxContainer Orientation="Vertical" Name="ConnectFail" Visible="False">
<Label Name="ConnectFailReason" Align="Center" />
<RichTextLabel Name="ConnectFailReason" VerticalAlignment="Stretch"/>
<Button Name="RetryButton" Text="{Loc 'connecting-retry'}"
HorizontalAlignment="Center"
VerticalExpand="True" VerticalAlignment="Bottom" />

View File

@@ -55,9 +55,9 @@ namespace Content.Client.Launcher
private void ConnectFailReasonChanged(string? reason)
{
ConnectFailReason.Text = reason == null
? null
: Loc.GetString("connecting-fail-reason", ("reason", reason));
ConnectFailReason.SetMessage(reason == null
? ""
: Loc.GetString("connecting-fail-reason", ("reason", reason)));
}
private void LastNetDisconnectedArgsChanged(NetDisconnectedArgs? args)