Skip to content

Commit 5ad692f

Browse files
authored
Merge pull request #2746 from devtron-labs/fix/navigation-routes-layout
chore: NavigationRoutes - update className for conditional margin
2 parents dbe29ef + 882d9c0 commit 5ad692f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/common/navigation/NavigationRoutes.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ export default function NavigationRoutes({ reloadVersionConfig }: Readonly<Navig
154154
const [licenseInfoDialogType, setLicenseInfoDialogType] = useState<LicenseInfoDialogType>(null)
155155
const [intelligenceConfig, setIntelligenceConfig] = useState<IntelligenceConfig>(null)
156156

157-
const [sidePanelConfig, setSidePanelConfig] = useState<SidePanelConfig>({ open: false, docLink: null, reinitialize: false })
157+
const [sidePanelConfig, setSidePanelConfig] = useState<SidePanelConfig>({
158+
open: false,
159+
docLink: null,
160+
reinitialize: false,
161+
})
158162
const asideWidth = useMotionValue(0)
159163

160164
const {
@@ -534,7 +538,7 @@ export default function NavigationRoutes({ reloadVersionConfig }: Readonly<Navig
534538
{serverMode && (
535539
<>
536540
<div
537-
className={`main flexbox-col bg__primary ${appTheme === AppThemeType.light ? 'dc__no-border' : 'border__primary-translucent'} mt-8 mb-8 ml-8 br-6 dc__overflow-hidden`}
541+
className={`main flexbox-col bg__primary ${appTheme === AppThemeType.light ? 'dc__no-border' : 'border__primary-translucent'} br-6 dc__overflow-hidden mt-8 mb-8 ml-8 ${!sidePanelConfig.open ? 'mr-8' : ''}`}
538542
ref={navRouteRef}
539543
>
540544
<Banner />

0 commit comments

Comments
 (0)