From 44fdc25fd2eba63ba87d600d7b1999fecca9da8e Mon Sep 17 00:00:00 2001 From: Jack Nolddor <1280022+nolddor@users.noreply.github.com> Date: Wed, 8 Apr 2026 11:42:07 +0200 Subject: [PATCH] fix: quicksell panel renders on top of the item info --- scripts/community/inventory.js | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/scripts/community/inventory.js b/scripts/community/inventory.js index 778e9091..c223c9cf 100644 --- a/scripts/community/inventory.js +++ b/scripts/community/inventory.js @@ -237,10 +237,29 @@ } ); } - requestAnimationFrame( () => + if( container.lastChild ) { container.append( footer ); - } ); + } + else + { + const observer = new MutationObserver( ( mutations ) => + { + for( const mutation of mutations ) + { + if( mutation.type === 'childList' && container.lastChild ) + { + container.append( footer ); + observer.disconnect(); + break; + } + } + } ); + + observer.observe( container, { + childList: true + } ); + } }; /**