Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit f44a935

Browse files
authored
fix: LSDV-5010: View all panel padding removed (#1339)
fix: lsdv-5010: view all panel padding removed
1 parent 08584be commit f44a935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/SidePanels/TabPanels/SideTabsPanels.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ const SideTabsPanelsComponent: FC<SidePanelsProps> = ({
319319
const panelRightWidth = rightKeys.length && panelData[rightKeys[0]].width || 0;
320320
const visibilityLeft = allLeftNotVisible ? 0 : panelLeftWidth;
321321
const visibilityRight = allRightNotVisible ? 0 : panelRightWidth;
322-
const paddingLeft = panelBreakPoint ? 0 : leftCollapsed ? PANEL_HEADER_HEIGHT : visibilityLeft ;
323-
const paddingRight = panelBreakPoint ? 0 : rightCollapsed ? PANEL_HEADER_HEIGHT : visibilityRight;
322+
const paddingLeft = panelBreakPoint || panelsHidden ? 0 : leftCollapsed ? PANEL_HEADER_HEIGHT : visibilityLeft ;
323+
const paddingRight = panelBreakPoint || panelsHidden ? 0 : rightCollapsed ? PANEL_HEADER_HEIGHT : visibilityRight;
324324

325325
return ({
326326
paddingLeft,

0 commit comments

Comments
 (0)