Cherrypick fixes

This commit is contained in:
Tobias Berger 2025-12-10 18:07:31 +01:00
parent 5602dc5089
commit f797d0bf8d
No known key found for this signature in database
GPG Key ID: 2D05EFAB764D6A88
3 changed files with 5 additions and 6 deletions

View File

@ -5,7 +5,7 @@ using Robust.Client.Graphics;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Utility;
using Content.Client._Funkystation.NanoChat
using Content.Client._Funkystation.NanoChat;
namespace Content.Client._DV.CartridgeLoader.Cartridges;

View File

@ -59,7 +59,7 @@ public sealed partial class NanoChatUiFragment : BoxContainer
_newChatPopup = new(_maxNameLength, _maxIdJobLength);
_editChatPopup = new(_maxNameLength, _maxIdJobLength);
_createGroupChatPopup = new();
_createGroupChatPopup = new(_maxNameLength);
_inviteToGroupPopup = new();
_groupMembersPopup = new();
_emojiPickerPopup = new();

View File

@ -3,7 +3,6 @@
//
// SPDX-License-Identifier: AGPL-3.0-or-later AND MIT
using Content.Shared.Access.Components;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;
@ -15,7 +14,7 @@ public sealed partial class CreateGroupChatPopup : DefaultWindow
{
public event Action<string>? OnGroupCreated;
public CreateGroupChatPopup()
public CreateGroupChatPopup(int maxFullNameLength)
{
RobustXamlLoader.Load(this);
@ -30,8 +29,8 @@ public sealed partial class CreateGroupChatPopup : DefaultWindow
GroupNameInput.OnTextChanged += args =>
{
if (args.Text.Length > IdCardConsoleComponent.MaxFullNameLength)
GroupNameInput.Text = args.Text[..IdCardConsoleComponent.MaxFullNameLength];
if (args.Text.Length > maxFullNameLength)
GroupNameInput.Text = args.Text[..maxFullNameLength];
ValidateInputs();
};
}