From 2e5ddb4bb55b4f906c9b61b5d3a3695b77aa9c56 Mon Sep 17 00:00:00 2001 From: crazybrain23 <44417085+crazybrain23@users.noreply.github.com> Date: Sat, 21 Jun 2025 02:13:25 +0100 Subject: [PATCH] Fix styling for Admin Menu lists (#38261) * remove styleclass from playertab 'button' lines * cvar, fix button-style header alignment * Fix requested changes And also the extra cvar things I was meant to remove in the upstream merge * Tiny tweaks --------- Co-authored-by: Errant <35878406+Errant-4@users.noreply.github.com> --- .../Administration/UI/Tabs/ObjectsTab/ObjectsTab.xaml.cs | 2 +- .../Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/Administration/UI/Tabs/ObjectsTab/ObjectsTab.xaml.cs b/Content.Client/Administration/UI/Tabs/ObjectsTab/ObjectsTab.xaml.cs index 4b50771b0f..59e0e6040b 100644 --- a/Content.Client/Administration/UI/Tabs/ObjectsTab/ObjectsTab.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/ObjectsTab/ObjectsTab.xaml.cs @@ -132,8 +132,8 @@ public sealed partial class ObjectsTab : Control entry.OnTeleport += TeleportTo; entry.OnDelete += Delete; button.ToolTip = $"{info.Name}, {info.Entity}"; - button.AddChild(entry); + button.StyleClasses.Clear(); } private bool DataFilterCondition(string filter, ListData listData) diff --git a/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs b/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs index 2a25d9e0aa..5a75e7223f 100644 --- a/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs @@ -172,6 +172,7 @@ public sealed partial class PlayerTab : Control _playerTabSymbolSetting); button.AddChild(entry); button.ToolTip = $"{player.Username}, {player.CharacterName}, {player.IdentityName}, {player.StartingJob}"; + button.StyleClasses.Clear(); } ///