Skip to content

Commit c2fd97c

Browse files
committed
fix: update href in open-in-new-tab button to use docLink directly and add no-shrink class to the container
1 parent 1cde991 commit c2fd97c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/common/SidePanel/SidePanelDocumentation.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const SidePanelDocumentation = ({ onClose }: SidePanelDocumentationProps)
2828

2929
return (
3030
<>
31-
<div className="px-16 pt-12 pb-11 border__primary--bottom flex dc__gap-12">
31+
<div className="px-16 pt-12 pb-11 border__primary--bottom flex dc__gap-12 dc__no-shrink">
3232
<Icon name="ic-book-open" color="N900" />
3333
<h2 className="m-0 fs-16 lh-1-5 fw-6 cn-9 flex-grow-1">Documentation</h2>
3434
<div className="flex dc__gap-8">
@@ -41,10 +41,7 @@ export const SidePanelDocumentation = ({ onClose }: SidePanelDocumentationProps)
4141
size={ComponentSizeType.xs}
4242
component={ButtonComponentType.anchor}
4343
anchorProps={{
44-
href:
45-
iframeRef.current?.contentDocument?.referrer ??
46-
iframeRef.current?.contentWindow?.location?.href ??
47-
docLink,
44+
href: docLink,
4845
}}
4946
/>
5047
<Button

0 commit comments

Comments
 (0)