fix: address automated review findings

This commit is contained in:
lezi-fun committed 2026-08-14 10:37:23 +08:00
1 parent f5d173350b
commit 5f81b819af
6 files changed
+85 -7

No files matched your search

+4
View File
@@ -93,6 +93,10 @@ export default function AdminPage() {
setPanelPhase('idle');
const settledHeight = measurePanelHeight();
if (settledHeight != null) setPanelHeight(settledHeight);
if (pendingTab.current !== tab) {
const queuedTab = pendingTab.current;
transitionFrame.current = requestAnimationFrame(() => changeTab(queuedTab));
}
}, 360);
});
}, [panelPhase, tab]);