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; @apply bg-background-main font-open-sans text-type-text;
min-height: 100vh; min-height: 100vh;
min-height: 100dvh; min-height: 100dvh;
scrollbar-gutter: stable;
} }
html[data-full], html[data-full],

View File

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

View File

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