From 661a384ffd4bbe9ad97cf93edcee32cc4cd38c25 Mon Sep 17 00:00:00 2001 From: Carolina Menezes Date: Sat, 4 Feb 2023 18:53:05 -0300 Subject: [PATCH] style(sidebar-elements): fix maxwidth --- src/components/sidebar-elements/styles.ts | 1 + src/pages/updates/release-notes/[slug].tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/components/sidebar-elements/styles.ts b/src/components/sidebar-elements/styles.ts index 52c6d2725..81d6fbd81 100644 --- a/src/components/sidebar-elements/styles.ts +++ b/src/components/sidebar-elements/styles.ts @@ -1,6 +1,7 @@ import { SxStyleProp } from '@vtex/brand-ui' const elementContainer: SxStyleProp = { + maxWidth: '265px', background: '#FFFFFF', ':hover': { background: '#F8F7FC', diff --git a/src/pages/updates/release-notes/[slug].tsx b/src/pages/updates/release-notes/[slug].tsx index 709207601..e55e89dd3 100644 --- a/src/pages/updates/release-notes/[slug].tsx +++ b/src/pages/updates/release-notes/[slug].tsx @@ -40,6 +40,7 @@ interface Props { content: string serialized: MDXRemoteSerializeResult sidebarfallback: any //eslint-disable-line + sectionSelected: string } const DocumentationPage: NextPage = ({ serialized }) => { @@ -166,9 +167,11 @@ export const getStaticProps: GetStaticProps = async ({ params }) => { const sidebarfallback = await getNavigation() serialized = JSON.parse(JSON.stringify(serialized)) + const sectionSelected = 'Release Notes' return { props: { + sectionSelected, serialized, sidebarfallback, },