Skip to content

Commit 5435114

Browse files
fixed Iframe UI and url issue
1 parent c4c3f79 commit 5435114

File tree

2 files changed

+16
-6
lines changed
  • src/ui/layouts

2 files changed

+16
-6
lines changed

src/ui/layouts/common/SidePopup/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,14 @@ export const SidePopup: React.FC<{
4242
<Box paddingTop="sm">
4343
<iframe
4444
title="ZenML - Organization Embed"
45-
style={{ border: '0px', height: '100vh', width: '100%' }}
46-
// src="https://zenml.hellonext.co/embed/home?no_header=true"
47-
src={flavor?.sdkDocsUrl}
45+
style={{
46+
border: '0px',
47+
height: '100vh',
48+
width: '100%',
49+
paddingBottom: '200px',
50+
}}
51+
// src="https://apidocs.zenml.io/0.35.0/"
52+
src={flavor.sdkDocsUrl ? flavor.sdkDocsUrl : flavor?.docsUrl}
4853
></iframe>
4954
</Box>
5055

src/ui/layouts/stackComponents/ConfigureComponent/SidePopup/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ export const SidePopup: React.FC<{
2020
<Box paddingTop="sm">
2121
<iframe
2222
title="ZenML - Organization Embed"
23-
style={{ border: '0px', height: '100vh', width: '100%' }}
24-
// src="https://zenml.hellonext.co/embed/home?no_header=true"
25-
src={flavor.sdkDocsUrl}
23+
style={{
24+
border: '0px',
25+
height: '100vh',
26+
width: '100%',
27+
paddingBottom: '200px',
28+
}}
29+
// src="https://apidocs.zenml.io/0.35.0/"
30+
src={flavor.sdkDocsUrl ? flavor.sdkDocsUrl : flavor?.docsUrl}
2631
></iframe>
2732
</Box>
2833

0 commit comments

Comments
 (0)