diff --git a/web/apps/cast/src/pages/index.tsx b/web/apps/cast/src/pages/index.tsx index e18b036202..df91363d87 100644 --- a/web/apps/cast/src/pages/index.tsx +++ b/web/apps/cast/src/pages/index.tsx @@ -1,6 +1,6 @@ import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator"; import log from "@/base/log"; -import { styled, Typography } from "@mui/material"; +import { Box, Stack, styled, Typography } from "@mui/material"; import { PairingCode } from "components/PairingCode"; import { useRouter } from "next/router"; import React, { useEffect, useState } from "react"; @@ -64,35 +64,27 @@ export default function Index() { return ( - + Enter this code on Ente Photos to pair this screen {pairingCode ? : } -

+ Visit{" "} ente.io/cast {" "} for help -

+
); } -const Container = styled("div")` +const Container = styled(Stack)` height: 100%; - display: flex; - flex-direction: column; justify-content: center; align-items: center; text-align: center; - p { - font-size: 1.2rem; - } a { text-decoration: none; color: #87cefa; @@ -101,12 +93,10 @@ const Container = styled("div")` `; const Spinner: React.FC = () => ( - + - + ); - -const Spinner_ = styled("div")` - /* Roughly same height as the pairing code section to roduce layout shift */ - margin-block: 1.7rem; -`;