From f6997528965cb016b9944d976be5932e2577728b Mon Sep 17 00:00:00 2001 From: Sharon Stratsianis Date: Tue, 18 Aug 2026 18:46:20 +1000 Subject: [PATCH] resize fix --- src/mainPage/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mainPage/index.ts b/src/mainPage/index.ts index ca50b463..17b22876 100644 --- a/src/mainPage/index.ts +++ b/src/mainPage/index.ts @@ -63,8 +63,14 @@ export async function initMainPage ( export async function refreshUI (outliner: OutlineManager) { const store = outliner?.context?.session?.store const paneRegistry = outliner?.context?.session?.paneRegistry - const subjectUri = window.document.location.href const paneName = window.history.state?.paneName + const paneUri = window.history.state?.paneUri + // Panes rendered for a subject other than the page URL (storage/profile/social) + // must be restored from paneUri, since byName() returns the pane without that subject. + const usesOwnSubject = paneName === 'profile' || paneName === 'social' || paneName === 'folder' + const subjectUri = paneUri && usesOwnSubject + ? paneUri + : window.document.location.href const pane = paneName ? paneRegistry?.byName?.(paneName) : undefined // Only re-run GotoSubject (full pane re-render) when render-relevant