Skip to content

Commit d76b99d

Browse files
Merge pull request #309 from thoughtspot/SCAL-240040
SCAL-240040 Move the developer doc body below the heading
2 parents 9f72b71 + b83418b commit d76b99d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.snyk

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.25.1
3+
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
4+
ignore:
5+
'snyk:lic:npm:vercel:analytics:MPL-2.0':
6+
- '*':
7+
reason: 'MPL-2.0 license is acceptable for our use case'
8+
expires: 2025-07-26T20:33:41.647Z
9+
created: 2024-03-27T20:33:41.649Z
10+
patch: {}

src/components/DevDocTemplate/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ const DevDocTemplate: FC<DevDocTemplateProps> = (props) => {
522522
id="wrapper"
523523
data-theme={isDarkMode ? 'dark' : 'light'}
524524
key={key}
525+
style={{ height: '100vh', overflow: 'hidden' }}
525526
>
526527
{isPublicSiteOpen && (
527528
<Header
@@ -534,7 +535,10 @@ const DevDocTemplate: FC<DevDocTemplateProps> = (props) => {
534535
ref={ref as React.RefObject<HTMLDivElement>}
535536
className={getClassName()}
536537
style={{
537-
height: !docContent && MAIN_HEIGHT_WITHOUT_DOC_CONTENT,
538+
height: !docContent
539+
? MAIN_HEIGHT_WITHOUT_DOC_CONTENT
540+
: 'calc(100vh - 60px)',
541+
overflow: 'auto',
538542
}}
539543
>
540544
{isPlayGround ? renderPlayGround() : renderDocTemplate()}

0 commit comments

Comments
 (0)