feat: 发布 v0.3.0 移动端答题优化

This commit is contained in:
2026-06-23 00:51:32 +02:00
parent 89675a526f
commit 81a70137a9
11 changed files with 134 additions and 71 deletions
+21
View File
@@ -113,10 +113,31 @@
}
@layer base {
html {
min-height: 100%;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
min-height: 100dvh;
font-family: var(--font-geist-sans), -apple-system, BlinkMacSystemFont,
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
button,
select,
input,
textarea {
touch-action: manipulation;
}
}
@layer utilities {
.safe-x {
padding-left: max(1rem, env(safe-area-inset-left));
padding-right: max(1rem, env(safe-area-inset-right));
}
}
+7
View File
@@ -3,6 +3,13 @@ import './globals.css';
import { Navbar } from '@/components/Navbar';
import { I18nProviderClient } from '@/locales/client';
import { Toaster } from '@/components/ui/sonner';
import type { Viewport } from 'next';
export const viewport: Viewport = {
width: 'device-width',
initialScale: 1,
viewportFit: 'cover',
};
const geistSans = Geist({
variable: '--font-geist-sans',