Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 94b2142

Browse files
authored
fix: use dynamic view height for mobile support (#1014)
1 parent bf7ebca commit 94b2142

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

packages/docs/src/components/docs/table_of_contents/DocsTableOfContents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const StyledNav = styled('nav')(
144144
align-self: flex-start;
145145
position: sticky;
146146
top: 0;
147-
max-height: calc(100vh - 72px);
147+
max-height: calc(100dvh - 72px);
148148
overflow-y: auto;
149149
top: 16px;
150150

packages/docs/src/components/layout/Page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type { DocsGroup, SearchablePage } from '../../interface';
1616

1717
const StyledPageContentWrapper = styled('div')`
1818
display: block;
19-
height: calc(100vh - 72px);
19+
height: calc(100dvh - 72px);
2020
width: 100%;
2121
position: relative;
2222
top: 72px;

packages/docs/src/pages/community.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const StyledCommunityContent = styled('div')(
1313
({ theme }) => `
1414
width: 100%;
1515
padding-top: 72px;
16-
min-height: calc(100vh - 72px);
16+
min-height: calc(100dvh - 72px);
1717
display: flex;
1818
flex-direction: column;
1919
gap: 80px;

packages/docs/src/pages/releases.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const StyledReleaseContent = styled('div')(
2020
({ theme }) => `
2121
width: 100%;
2222
padding-top: 72px;
23-
min-height: calc(100vh - 72px);
23+
min-height: calc(100dvh - 72px);
2424
display: flex;
2525
flex-direction: column;
2626
gap: 20px;

tailwind.base.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module.exports = {
33
theme: {
44
extend: {
55
height: {
6-
main: "calc(100vh - 64px)",
7-
"main-mobile": "calc(100vh - 128px)",
6+
main: "calc(100dvh - 64px)",
7+
"main-mobile": "calc(100dvh - 128px)",
88
"media-library-dialog": "80vh",
99
"media-card": "240px",
1010
"media-preview-image": "104px",

0 commit comments

Comments
 (0)