mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
fix: fix global layout overscroll + link colors (#404)
This commit is contained in:
@@ -128,13 +128,13 @@ export default function TranscriptBrowser() {
|
|||||||
gap={2}
|
gap={2}
|
||||||
overflowY="auto"
|
overflowY="auto"
|
||||||
minH="100%"
|
minH="100%"
|
||||||
mt={8}
|
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex
|
||||||
flexDir="row"
|
flexDir="row"
|
||||||
justify="flex-end"
|
justify="flex-end"
|
||||||
align="center"
|
align="center"
|
||||||
flexWrap={"wrap-reverse"}
|
flexWrap={"wrap-reverse"}
|
||||||
|
mt={4}
|
||||||
>
|
>
|
||||||
{session?.user?.name ? (
|
{session?.user?.name ? (
|
||||||
<Heading size="md">{session?.user?.name}'s Meetings</Heading>
|
<Heading size="md">{session?.user?.name}'s Meetings</Heading>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export default async function AppLayout({
|
|||||||
<Link
|
<Link
|
||||||
as={NextLink}
|
as={NextLink}
|
||||||
href="/transcripts/new"
|
href="/transcripts/new"
|
||||||
className="hover:underline focus-within:underline underline-offset-2 decoration-[.5px] font-light px-2"
|
className="font-light px-2"
|
||||||
>
|
>
|
||||||
Create
|
Create
|
||||||
</Link>
|
</Link>
|
||||||
@@ -64,7 +64,7 @@ export default async function AppLayout({
|
|||||||
<Link
|
<Link
|
||||||
href="/browse"
|
href="/browse"
|
||||||
as={NextLink}
|
as={NextLink}
|
||||||
className="hover:underline focus-within:underline underline-offset-2 decoration-[.5px] font-light px-2"
|
className="font-light px-2"
|
||||||
prefetch={false}
|
prefetch={false}
|
||||||
>
|
>
|
||||||
Browse
|
Browse
|
||||||
@@ -79,7 +79,7 @@ export default async function AppLayout({
|
|||||||
<Link
|
<Link
|
||||||
href="/rooms"
|
href="/rooms"
|
||||||
as={NextLink}
|
as={NextLink}
|
||||||
className="hover:underline focus-within:underline underline-offset-2 decoration-[.5px] font-light px-2"
|
className="font-light px-2"
|
||||||
prefetch={false}
|
prefetch={false}
|
||||||
>
|
>
|
||||||
Rooms
|
Rooms
|
||||||
@@ -88,16 +88,6 @@ export default async function AppLayout({
|
|||||||
) : (
|
) : (
|
||||||
<></>
|
<></>
|
||||||
)}
|
)}
|
||||||
·
|
|
||||||
<About buttonText="About" />
|
|
||||||
{privacy ? (
|
|
||||||
<>
|
|
||||||
·
|
|
||||||
<Privacy buttonText="Privacy" />
|
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
<></>
|
|
||||||
)}
|
|
||||||
{requireLogin ? (
|
{requireLogin ? (
|
||||||
<>
|
<>
|
||||||
·
|
·
|
||||||
|
|||||||
@@ -102,14 +102,15 @@ const TranscriptCreate = () => {
|
|||||||
flexDir="column"
|
flexDir="column"
|
||||||
margin="auto"
|
margin="auto"
|
||||||
gap={2}
|
gap={2}
|
||||||
overflowY="auto"
|
|
||||||
maxH="100%"
|
maxH="100%"
|
||||||
|
px={{ base: 5, md: 10 }}
|
||||||
|
py={5}
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex
|
||||||
flexDir={{ base: "column", md: "row" }}
|
flexDir={{ base: "column", md: "row" }}
|
||||||
justify="space-between"
|
justify="space-between"
|
||||||
align="center"
|
align="center"
|
||||||
gap={4}
|
gap={8}
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex
|
||||||
flexDir="column"
|
flexDir="column"
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ type TranscriptList = {
|
|||||||
refetch: () => void;
|
refetch: () => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
//always protected
|
|
||||||
const useTranscriptList = (page: number): TranscriptList => {
|
const useTranscriptList = (page: number): TranscriptList => {
|
||||||
const [response, setResponse] = useState<Page_GetTranscript_ | null>(null);
|
const [response, setResponse] = useState<Page_GetTranscript_ | null>(null);
|
||||||
const [loading, setLoading] = useState<boolean>(true);
|
const [loading, setLoading] = useState<boolean>(true);
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import { useSession, signOut, signIn } from "next-auth/react";
|
import { useSession, signOut, signIn } from "next-auth/react";
|
||||||
import { Spinner } from "@chakra-ui/react";
|
import { Spinner, Link } from "@chakra-ui/react";
|
||||||
import Link from "next/link";
|
|
||||||
|
|
||||||
export default function UserInfo() {
|
export default function UserInfo() {
|
||||||
const { status } = useSession();
|
const { status } = useSession();
|
||||||
@@ -11,28 +10,20 @@ export default function UserInfo() {
|
|||||||
return !sessionReady ? (
|
return !sessionReady ? (
|
||||||
<Spinner size="xs" thickness="1px" className="mx-3" />
|
<Spinner size="xs" thickness="1px" className="mx-3" />
|
||||||
) : !isAuthenticated ? (
|
) : !isAuthenticated ? (
|
||||||
<span className="hover:underline focus-within:underline underline-offset-2 decoration-[.5px] font-light px-2">
|
<Link
|
||||||
<Link
|
href="/"
|
||||||
href="/"
|
className="font-light px-2"
|
||||||
onClick={() => signIn("authentik")}
|
onClick={() => signIn("authentik")}
|
||||||
className="outline-none"
|
>
|
||||||
prefetch={false}
|
Log in
|
||||||
>
|
</Link>
|
||||||
Log in
|
|
||||||
</Link>
|
|
||||||
</span>
|
|
||||||
) : (
|
) : (
|
||||||
<span className="font-light px-2">
|
<Link
|
||||||
<span className="hover:underline focus-within:underline underline-offset-2 decoration-[.5px]">
|
href="#"
|
||||||
<Link
|
className="font-light px-2"
|
||||||
href="#"
|
onClick={() => signOut({ callbackUrl: "/" })}
|
||||||
onClick={() => signOut({ callbackUrl: "/" })}
|
>
|
||||||
className="outline-none"
|
Log out
|
||||||
prefetch={false}
|
</Link>
|
||||||
>
|
|
||||||
Log out
|
|
||||||
</Link>
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export default async function RootLayout({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body className={"h-[100svh] w-[100svw] overflow-hidden relative"}>
|
<body className={"h-[100svh] w-[100svw] overflow-x-hidden relative"}>
|
||||||
<SessionProvider>
|
<SessionProvider>
|
||||||
<DomainContextProvider config={config}>
|
<DomainContextProvider config={config}>
|
||||||
<ErrorBoundary fallback={<p>"something went really wrong"</p>}>
|
<ErrorBoundary fallback={<p>"something went really wrong"</p>}>
|
||||||
|
|||||||
Reference in New Issue
Block a user