feat: 弹窗兼容修改

This commit is contained in:
speakeloudest 2025-09-23 06:19:12 -07:00
parent b6c82e9bc9
commit 8c7d415ae7
2 changed files with 4 additions and 2 deletions

View File

@ -10,9 +10,11 @@ import { getLocale, getMessages } from 'next-intl/server';
import { PublicEnvScript } from 'next-runtime-env';
import { unstable_noStore as noStore } from 'next/cache';
// import { Geist, Geist_Mono } from 'next/font/google';
import { Inter } from 'next/font/google';
import { cookies } from 'next/headers';
import NextTopLoader from 'nextjs-toploader';
import React from 'react';
const inter = Inter({ subsets: ['latin'] });
// const fontSans = Geist({
// subsets: ['latin'],
@ -112,7 +114,7 @@ export default async function RootLayout({
<body
suppressHydrationWarning
// ${fontSans.variable} ${fontMono.variable}
className={`size-full min-h-[calc(100dvh-env(safe-area-inset-top))] font-sans antialiased`}
className={`size-full min-h-[calc(100dvh-env(safe-area-inset-top))] ${inter.className} antialiased`}
>
<NextIntlClientProvider messages={messages}>
<NextTopLoader showSpinner={false} />

View File

@ -28,7 +28,7 @@ export function DatePicker({
};
return (
<Popover>
<Popover modal>
<PopoverTrigger asChild>
<Button
variant='outline'