more pdfjs

This commit is contained in:
2025-11-16 20:13:47 +01:00
parent dae66703f2
commit 4b9f74d5a8
7 changed files with 205 additions and 88 deletions
-13
View File
@@ -166,19 +166,6 @@ export const PanelManagerProvider: React.FC<PanelManagerProviderProps> = ({ chil
if (panel === 'sidebar' && (action === 'opened' || action === 'resized') && !meetsThreshold && effectiveDetailOpen) {
closeDetailPanel();
}
const normalizedAction = action === 'resized'
? `${panel} resized to ${value}px`
: `${panel} ${action}`;
console.log(normalizedAction, {
sidebar: sidebarWidth > 0 ? `${sidebarWidth}px` : 'closed',
detail: `${detailWidth}px`,
freeSpace,
viewportWidth,
freeRatio,
minimalFreeRatio: MINIMAL_FREE_RATIO,
meetsThreshold,
});
}, [collapsed, closeDetailPanel, detailPanelOpen]);
const collapseSidebar = useCallback(() => {