Replies: 2 comments
-
Hi. I had the same question a few hours ago. Solution: import type { AppProps } from "next/app";
import "../app/globals.css";
import "./overrides.css";
export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
} inside div:has(.nextra-content) {
width: 100vw !important;
max-width: 100vw;
}
.nextra-content {
padding: 0 !important;
} It's the best solution I've found. |
Beta Was this translation helpful? Give feedback.
-
Thank you, Marcelo. Your tip put me on the right path. My project was JavaScript-based. The entire content between the navigation bar at the top and the footer resided in the following block, which was the culprit:
For some reason, the The following CSS code worked, though:
The last block enabled the middle column (main content) to occupy its entire available width. Unfortunately, this was a very dirty hack and I wish for the authors of the project to come with the proper solution. |
Beta Was this translation helpful? Give feedback.
-
Hello everybody.
Context:
Concerning the Docs theme, it seems that the width of the content column is limited to 90rem, which causes a Nextra application using this theme to have a significant portion of the viewport (columns to the left and to the right) to remain unused. This is very visible on wide displays.
Is it possible to get the content column to occupy the entire available width globally?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions