feat: 禁止主页容器横向滚动

This commit is contained in:
hzm
2026-03-06 00:23:24 +08:00
parent d9bc246088
commit 6580658f55
2 changed files with 4 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import { motion, AnimatePresence } from 'framer-motion'; import { motion, AnimatePresence } from 'framer-motion';
const ANNOUNCEMENT_KEY = 'hasClosedAnnouncement_v11'; const ANNOUNCEMENT_KEY = 'hasClosedAnnouncement_v12';
export default function Announcement() { export default function Announcement() {
const [isVisible, setIsVisible] = useState(false); const [isVisible, setIsVisible] = useState(false);

View File

@@ -34,6 +34,7 @@
html, html,
body { body {
height: 100%; height: 100%;
overflow-x: hidden;
} }
body { body {
@@ -725,6 +726,7 @@ body::before {
@media (max-width: 640px) { @media (max-width: 640px) {
.content { .content {
padding-top: 140px; padding-top: 140px;
overflow-x: hidden;
} }
.navbar { .navbar {
@@ -890,6 +892,7 @@ input[type="number"] {
padding: 12px; padding: 12px;
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;
overflow-x: hidden;
} }
.grid { .grid {