Skip to content

Commit 6defb79

Browse files
committed
fix: side panel default link
1 parent b5a0698 commit 6defb79

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/components/common/SidePanel/SidePanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const SidePanel = ({ asideWidth }: SidePanelProps) => {
9090
<div className="aside-drag__handle px-1 br-1" />
9191
</div>
9292
</Draggable>
93-
<div className="flex-grow-1 py-8 pr-8">
93+
<div className="flex-grow-1 py-8 pr-8 dc__overflow-hidden">
9494
<div
9595
className={`w-100 h-100 dc__position-rel br-6 bg__primary flexbox-col dc__overflow-hidden ${appTheme === AppThemeType.dark ? 'border__primary-translucent' : ''}`}
9696
>

src/components/common/SidePanel/SidePanelDocumentation.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ export const SidePanelDocumentation = ({ SidePanelHeaderActions }: SidePanelCont
1919
// HOOKS
2020
const { appTheme } = useTheme()
2121
const {
22-
sidePanelConfig: { docLink = DOCUMENTATION.DOC_HOME_PAGE, reinitialize },
22+
sidePanelConfig: { docLink: sidePanelDocLink, reinitialize },
2323
setSidePanelConfig,
2424
} = useMainContext()
2525

26+
const docLink = sidePanelDocLink ?? DOCUMENTATION.DOC_HOME_PAGE
27+
2628
// REFS
2729
const iframeRef = useRef<HTMLIFrameElement | null>(null)
2830
const iframeKeyRef = useRef<string | null>(`${docLink}-${getUniqueId()}`)

src/components/common/navigation/navigation.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
*/
1616

1717
#root > div > main {
18-
width: 100%;
18+
width: 100vw;
1919
min-height: 100vh;
2020
display: grid;
21-
overflow-y: hidden;
21+
overflow: hidden;
2222
}
2323

2424
.main {

0 commit comments

Comments
 (0)