From f80f954f817871ada084518e79b1832c0c5db2d9 Mon Sep 17 00:00:00 2001 From: Skubman Date: Wed, 8 Jan 2025 14:58:04 +0800 Subject: [PATCH] Increase Title/Content Text Limits For News Articles (#1447) # Description Increases the text limit for news reports: - Title character limit: 25 -> 50 - Content character limit: 2048 -> 2560 Mostly a personal change for me because I often run into the title character limits when I was playing Reporter. ## Media ![image](https://github.com/user-attachments/assets/121b29d3-af42-474d-bb04-a438dbab74c3) ![image](https://github.com/user-attachments/assets/5fd71407-a641-4dcc-8913-d0515ca7598c) ![image](https://github.com/user-attachments/assets/079142f8-5f39-4d91-b914-c1327bf4f0bb) ## Changelog :cl: Skubman - tweak: The news article title character limit has been increased from 25 to 50 characters, and news content from 2048 to 2560 characters. --- Content.Client/MassMedia/Ui/NewsArticleCard.xaml.cs | 2 +- Content.Client/MassMedia/Ui/NewsWriterMenu.xaml | 4 ++-- Content.Shared/MassMedia/Systems/SharedNewsSystem.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Content.Client/MassMedia/Ui/NewsArticleCard.xaml.cs b/Content.Client/MassMedia/Ui/NewsArticleCard.xaml.cs index f6fa3e00be0..bdd8b49d0ba 100644 --- a/Content.Client/MassMedia/Ui/NewsArticleCard.xaml.cs +++ b/Content.Client/MassMedia/Ui/NewsArticleCard.xaml.cs @@ -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 diff --git a/Content.Client/MassMedia/Ui/NewsWriterMenu.xaml b/Content.Client/MassMedia/Ui/NewsWriterMenu.xaml index 64932bc6cfe..f1cf56fce31 100644 --- a/Content.Client/MassMedia/Ui/NewsWriterMenu.xaml +++ b/Content.Client/MassMedia/Ui/NewsWriterMenu.xaml @@ -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"> diff --git a/Content.Shared/MassMedia/Systems/SharedNewsSystem.cs b/Content.Shared/MassMedia/Systems/SharedNewsSystem.cs index f59b6af3def..ef53367c266 100644 --- a/Content.Shared/MassMedia/Systems/SharedNewsSystem.cs +++ b/Content.Shared/MassMedia/Systems/SharedNewsSystem.cs @@ -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]