Only apply stable gutter to home page

This commit is contained in:
Cooper Ransom 2024-04-22 18:26:28 -04:00
parent 7838adbd87
commit a8b8810c33
3 changed files with 5 additions and 9 deletions

View File

@ -7,7 +7,6 @@ body {
@apply bg-background-main font-open-sans text-type-text;
min-height: 100vh;
min-height: 100dvh;
scrollbar-gutter: stable;
}
html[data-full],

View File

@ -42,6 +42,11 @@ export function HomePage() {
<HomeLayout showBg={showBg}>
<div className="mb-16 sm:mb-24">
<Helmet>
<style type="text/css">{`
html, body {
scrollbar-gutter: stable;
}
`}</style>
<title>{t("global.name")}</title>
</Helmet>
<HeroPart searchParams={searchParams} setIsSticky={setShowBg} />

View File

@ -1,6 +1,5 @@
import { RunOutput } from "@movie-web/providers";
import { useCallback, useEffect, useState } from "react";
import { Helmet } from "react-helmet-async";
import {
Navigate,
useLocation,
@ -93,13 +92,6 @@ export function RealPlayerView() {
return (
<PlayerPart backUrl={backUrl} onMetaChange={metaChange}>
<Helmet>
<style type="text/css">{`
html, body {
scrollbar-gutter: auto;
}
`}</style>
</Helmet>
{status === playerStatus.IDLE ? (
<MetaPart onGetMeta={setPlayerMeta} />
) : null}