From: crazybrain23 <44417085+crazybrain23@users.noreply.github.com> Date: Sat, 21 Jun 2025 01:13:25 +0000 (+0100) Subject: Fix styling for Admin Menu lists (#38261) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2e5ddb4bb55b4f906c9b61b5d3a3695b77aa9c56;p=space-station-14.git 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> --- 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(); } ///