]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix styling for Admin Menu lists (#38261)
authorcrazybrain23 <44417085+crazybrain23@users.noreply.github.com>
Sat, 21 Jun 2025 01:13:25 +0000 (02:13 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Jun 2025 01:13:25 +0000 (03:13 +0200)
* 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>
Content.Client/Administration/UI/Tabs/ObjectsTab/ObjectsTab.xaml.cs
Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs

index 4b50771b0fe468d50a5715380fe4d9ce07dcae61..59e0e6040b768a3bf421b7c898dd4706afa483d8 100644 (file)
@@ -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)
index 2a25d9e0aabc1c7dd43b2345617c69c8d4d9abf2..5a75e7223f4461a67b2c49af9bfbf0cf71ec4ed5 100644 (file)
@@ -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();
     }
 
     /// <summary>