Take 100% height
This commit is contained in:
parent
16543a832c
commit
dff897641b
@ -9,7 +9,7 @@ export default function Layout({ children }: LayoutProps) {
|
||||
<header className="py-5 px-20">
|
||||
<h1 className="text-2xl">Mock SAML IdP</h1>
|
||||
</header>
|
||||
<main>{children}</main>
|
||||
<main className="h-[calc(100%_-_76px)] overflow-auto">{children}</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ export const getServerSideProps: GetServerSideProps = async () => {
|
||||
|
||||
const Home: React.FC<{ metadata: IdPMetadata }> = ({ metadata }) => {
|
||||
return (
|
||||
<>
|
||||
<div className="h-full">
|
||||
<Head>
|
||||
<title>Mock SAML IdP - Metadata</title>
|
||||
</Head>
|
||||
@ -41,7 +41,7 @@ const Home: React.FC<{ metadata: IdPMetadata }> = ({ metadata }) => {
|
||||
<Link href="/api/saml/metadata/download">Download Metadata</Link>
|
||||
</p>
|
||||
</div>
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@ -16,6 +16,10 @@ body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: "Manrope", sans-serif;
|
||||
height: 100%;
|
||||
}
|
||||
#__next {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user