Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
increase title/content text limits for news reports
Browse files Browse the repository at this point in the history
angelofallars committed Jan 6, 2025
1 parent e31692d commit 879df92
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Content.Client/MassMedia/Ui/NewsArticleCard.xaml.cs
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ public sealed partial class NewsArticleCard : Control
public string? Title
{
get => TitleLabel.Text;
set => TitleLabel.Text = value?.Length <= 30 ? value : $"{value?[..30]}...";
set => TitleLabel.Text = value?.Length <= 40 ? value : $"{value?[..40]}...";
}

public string? Author
4 changes: 2 additions & 2 deletions Content.Client/MassMedia/Ui/NewsWriterMenu.xaml
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@
xmlns:ui="clr-namespace:Content.Client.MassMedia.Ui"
xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
Title="{Loc 'news-write-ui-default-title'}"
MinSize="348 443"
SetSize="348 443">
MinSize="404 443"
SetSize="404 443">

<ui:ArticleEditorPanel Name="ArticleEditorPanel" HorizontalAlignment="Left" VerticalExpand="True"
MinWidth="410" MinHeight="370" Margin="0 0 0 30" Access="Public" Visible="False"/>
4 changes: 2 additions & 2 deletions Content.Shared/MassMedia/Systems/SharedNewsSystem.cs
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@ namespace Content.Shared.MassMedia.Systems;

public abstract class SharedNewsSystem : EntitySystem
{
public const int MaxTitleLength = 25;
public const int MaxContentLength = 2048;
public const int MaxTitleLength = 50;
public const int MaxContentLength = 2560;
}

[Serializable, NetSerializable]

0 comments on commit 879df92

Please sign in to comment.