crew monitor window now has consistent size (#10186)

This commit is contained in:
Justin Trotter
2022-08-03 19:46:02 -05:00
committed by GitHub
parent 0f3fe0b1b4
commit 873b1b7bd1
3 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<DefaultWindow xmlns="https://spacestation14.io"
Title="{Loc 'crew-monitoring-user-interface-title'}"
SetSize="450 400">
SetSize="775 400">
<ScrollContainer HorizontalExpand="True"
VerticalExpand="True">
<GridContainer Name="SensorsTable"

View File

@@ -39,6 +39,7 @@ namespace Content.Client.Medical.CrewMonitoring
{
Text = $"{sensor.Name} ({sensor.Job})"
};
nameLabel.HorizontalExpand = true;
SensorsTable.AddChild(nameLabel);
_rowsContent.Add(nameLabel);

View File

@@ -8,8 +8,8 @@ namespace Content.Shared.Access.Components
[NetworkedComponent]
public abstract class SharedIdCardConsoleComponent : Component
{
public const int MaxFullNameLength = 256;
public const int MaxJobTitleLength = 256;
public const int MaxFullNameLength = 30;
public const int MaxJobTitleLength = 30;
public static string PrivilegedIdCardSlotId = "IdCardConsole-privilegedId";
public static string TargetIdCardSlotId = "IdCardConsole-targetId";