diff --git a/Winch/Patches/API/RecipePatcher.cs b/Winch/Patches/API/RecipePatcher.cs
index 84702d56..6576b91f 100644
--- a/Winch/Patches/API/RecipePatcher.cs
+++ b/Winch/Patches/API/RecipePatcher.cs
@@ -2,6 +2,7 @@
using System.Linq;
using System.Reflection.Emit;
using HarmonyLib;
+using UnityEngine;
using Winch.Components;
using Winch.Data.Recipe;
using Winch.Util;
@@ -13,6 +14,20 @@ namespace Winch.Patches.API;
[HarmonyPatch]
internal static class RecipePatcher
{
+ ///
+ /// Resize golden outline based on grid config size
+ ///
+ [HarmonyPostfix]
+ [HarmonyPatch(typeof(ItemProductPanel), nameof(ItemProductPanel.Show))]
+ public static void ItemProductPanel_Show_Postfix(ItemProductPanel __instance)
+ {
+ var gridConfig = __instance.questGridConfig.gridConfiguration;
+ var width = gridConfig.columns / 4f;
+ var height = gridConfig.rows / 4f;
+ var goldenSquareOutline = (RectTransform)(__instance.gridUI.transform.Find("BackgroundImage"));
+ goldenSquareOutline.localScale = new Vector3(width, height, 1);
+ }
+
[HarmonyTranspiler]
[HarmonyPatch(typeof(ConstructableDestinationUI), nameof(ConstructableDestinationUI.OnRecipeGridPanelExitEvent))]
public static IEnumerable ConstructableDestinationUI_OnRecipeGridPanelExitEvent_Transpiler(IEnumerable instructions, ILGenerator generator)