Skip to content

Commit

Permalink
Merge pull request #221 from vtexdocs/styles/fix-sidebar-size
Browse files Browse the repository at this point in the history
style(sidebar-elements): fix maxwidth
  • Loading branch information
carolinamenezes authored Feb 4, 2023
2 parents 8893434 + 5ae46e7 commit fe0f6ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/sidebar-elements/styles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { SxStyleProp } from '@vtex/brand-ui'

const elementContainer: SxStyleProp = {
maxWidth: '265px',
background: '#FFFFFF',
':hover': {
background: '#F8F7FC',
Expand Down
3 changes: 3 additions & 0 deletions src/pages/updates/release-notes/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ interface Props {
content: string
serialized: MDXRemoteSerializeResult
sidebarfallback: any //eslint-disable-line
sectionSelected: string
}

const DocumentationPage: NextPage<Props> = ({ serialized }) => {
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit fe0f6ed

Please sign in to comment.