Don't clip ban reason text (#12925)
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user