From 0cd5f8555ab71a824682d70d7058e6e9799f8914 Mon Sep 17 00:00:00 2001 From: towneh <25694892+towneh@users.noreply.github.com> Date: Fri, 22 May 2026 17:05:01 +0100 Subject: [PATCH] fix(library): inset row-action icons to match status-icon padding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Select / Teleport / Remove buttons on the Instantiated tab were rendering their icons at the full 80x80 button area, so the icon strokes ran right up to (and sometimes past) the colored bevel edges. The row's left-side status icons (which use PE Image Simple Square) don't have this problem — that prefab insets the icon RectTransform with sizeDelta -30, leaving a 15px margin on each side. Apply the same sizeDelta -30 to the three row-action button icons after SetIcon, so their padding matches the status-icon column. --- .../BasisUI/Menus/Library/LibraryProvider.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Basis/Packages/com.basis.framework/BasisUI/Menus/Library/LibraryProvider.cs b/Basis/Packages/com.basis.framework/BasisUI/Menus/Library/LibraryProvider.cs index 3c2190f55..6e5628ec9 100644 --- a/Basis/Packages/com.basis.framework/BasisUI/Menus/Library/LibraryProvider.cs +++ b/Basis/Packages/com.basis.framework/BasisUI/Menus/Library/LibraryProvider.cs @@ -1955,6 +1955,8 @@ private static void CreateListEntry(BasisRuntimeSpawnRegistry.SpawnInstance item selectItem.Descriptor.SetTitle(string.Empty); selectItem.SetIcon(AddressableAssets.Sprites.Select); selectItem.SetSize(new Vector2(80, 80)); + // Inset the icon so its strokes stay clear of the bevel — matches PE Image Simple Square's pattern. + selectItem.Descriptor.IconImage.rectTransform.sizeDelta = new Vector2(-30, -30); selectItem.OnClicked += async () => { @@ -1979,6 +1981,7 @@ private static void CreateListEntry(BasisRuntimeSpawnRegistry.SpawnInstance item TeleportToItem.Descriptor.SetTitle(string.Empty); TeleportToItem.SetIcon(AddressableAssets.Sprites.TeleportTo); TeleportToItem.SetSize(new Vector2(80, 80)); + TeleportToItem.Descriptor.IconImage.rectTransform.sizeDelta = new Vector2(-30, -30); TeleportToItem.OnClicked += () => { @@ -2012,6 +2015,7 @@ private static void CreateListEntry(BasisRuntimeSpawnRegistry.SpawnInstance item removeItem.Descriptor.SetTitle(string.Empty); removeItem.SetIcon(AddressableAssets.Sprites.Trash); removeItem.SetSize(new Vector2(80, 80)); + removeItem.Descriptor.IconImage.rectTransform.sizeDelta = new Vector2(-30, -30); // only apply this to items that are spawned on the network if(itemKey.SpawnMethod == BasisRuntimeSpawnRegistry.SpawnMethod.Network)