Fix home page overflowing by a few pixels

Because the height of our header component changed at some point, the hard-coded height values in the CSS were off by a few px and caused the page to overflow slightly.
This commit is contained in:
Robin
2023-09-18 16:47:15 -04:00
parent 60a6347a63
commit c1f1cb94fd
3 changed files with 17 additions and 21 deletions

View File

@@ -114,15 +114,15 @@ export function RegisteredView({ client }: Props) {
return ( return (
<> <>
<Header>
<LeftNav>
<HeaderLogo />
</LeftNav>
<RightNav>
<UserMenuContainer />
</RightNav>
</Header>
<div className={commonStyles.container}> <div className={commonStyles.container}>
<Header>
<LeftNav>
<HeaderLogo />
</LeftNav>
<RightNav>
<UserMenuContainer />
</RightNav>
</Header>
<main className={commonStyles.main}> <main className={commonStyles.main}>
<HeaderLogo className={commonStyles.logo} /> <HeaderLogo className={commonStyles.logo} />
<Heading size="lg" weight="semibold"> <Heading size="lg" weight="semibold">

View File

@@ -148,15 +148,15 @@ export const UnauthenticatedView: FC = () => {
return ( return (
<> <>
<Header>
<LeftNav>
<HeaderLogo />
</LeftNav>
<RightNav hideMobile>
<UserMenuContainer />
</RightNav>
</Header>
<div className={commonStyles.container}> <div className={commonStyles.container}>
<Header>
<LeftNav>
<HeaderLogo />
</LeftNav>
<RightNav hideMobile>
<UserMenuContainer />
</RightNav>
</Header>
<main className={commonStyles.main}> <main className={commonStyles.main}>
<HeaderLogo className={commonStyles.logo} /> <HeaderLogo className={commonStyles.logo} />
<Heading size="lg" weight="semibold"> <Heading size="lg" weight="semibold">

View File

@@ -16,7 +16,7 @@ limitations under the License.
.container { .container {
display: flex; display: flex;
min-height: calc(100% - 64px); min-height: 100%;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
} }
@@ -42,8 +42,4 @@ limitations under the License.
.logo { .logo {
display: none; display: none;
} }
.container {
min-height: calc(100% - 76px);
}
} }