-
I'm using the nav to navigate and don't need the sidebar, so I disabled the sidebar. However, the main area rendering markdown is still narrow. Is there a way to config vitepress default theme and making content container wider? PS. There are plenty of areas wasted on my Macbook screen on both right and left side. Please refer to below picture. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Digging into the code, there is hard coded max-width inside: https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/components/VPDoc.vue @media (min-width: 1440px) {
.VPDoc:not(.has-sidebar) .content {
max-width: 784px;
}
.VPDoc:not(.has-sidebar) .container {
max-width: 1104px;
}
} Is there an easy way I can override the two max-width? thanks.. |
Beta Was this translation helpful? Give feedback.
Digging into the code, there is hard coded max-width inside:
https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/components/VPDoc.vue
Is there an easy way I can override the two max-width? thanks..