Skip to content

Commit 28a429f

Browse files
committed
fix: use hideFrom to prevent layout shifts
For MoreContent component, removing usage of Show component
1 parent a52d215 commit 28a429f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/layouts/Upgrade.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
Icon,
99
List,
1010
ListItem,
11-
Show,
1211
Text,
1312
useToken,
1413
} from "@chakra-ui/react"
@@ -75,6 +74,7 @@ const HeroContainer = (props: ChildOnlyProp) => (
7574

7675
const MoreContent = (props: ChildOnlyProp & { to: string }) => (
7776
<Flex
77+
hideBelow="lg"
7878
as={BaseLink}
7979
bg="ednBackground"
8080
justify="center"
@@ -205,11 +205,9 @@ export const UpgradeLayout: React.FC<IProps> = ({
205205
/>
206206
)}
207207
</HeroContainer>
208-
<Show above={lgBreakpoint}>
209-
<MoreContent to={"#" + MAIN_CONTENT_ID}>
210-
<Icon as={MdExpandMore} fontSize="2xl" color="secondary" />
211-
</MoreContent>
212-
</Show>
208+
<MoreContent to={"#" + MAIN_CONTENT_ID}>
209+
<Icon as={MdExpandMore} fontSize="2xl" color="secondary" />
210+
</MoreContent>
213211
<Page>
214212
{/* TODO: Switch to `above="lg"` after completion of Chakra Migration */}
215213
<LeftNavBar

0 commit comments

Comments
 (0)