Skip to content

Commit

Permalink
Word wrap for vote titles (space-wizards#31248)
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Aug 21, 2024
1 parent 4bf35ee commit 89c5939
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Content.Client/Voting/UI/VotePopup.xaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Control xmlns="https://spacestation14.io" MinWidth="300">
<Control xmlns="https://spacestation14.io" MinWidth="300" MaxWidth="500">
<PanelContainer StyleClasses="AngleRect" />
<BoxContainer Margin="4" Orientation="Vertical">
<Label Name="VoteCaller" />
<Label Name="VoteTitle" />
<RichTextLabel Name="VoteTitle" />

<GridContainer Columns="3" Name="VoteOptionsContainer" />
<BoxContainer Orientation="Horizontal">
Expand Down
3 changes: 2 additions & 1 deletion Content.Client/Voting/UI/VotePopup.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Robust.Shared.Localization;
using Robust.Shared.Maths;
using Robust.Shared.Timing;
using Robust.Shared.Utility;

namespace Content.Client.Voting.UI
{
Expand Down Expand Up @@ -48,7 +49,7 @@ public VotePopup(VoteManager.ActiveVote vote)

public void UpdateData()
{
VoteTitle.Text = _vote.Title;
VoteTitle.SetMessage(FormattedMessage.FromUnformatted(_vote.Title));
VoteCaller.Text = Loc.GetString("ui-vote-created", ("initiator", _vote.Initiator));

for (var i = 0; i < _voteButtons.Length; i++)
Expand Down

0 comments on commit 89c5939

Please sign in to comment.