more pdfjs
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user