fix(player+admin): 移动端 PWA 安全区、防缩放与局域网调试

玩家端适配主屏幕 safe-area、底部导航滚动隐藏与全屏布局;双端禁止页面缩放并开放 Vite host 供手机联调。
This commit is contained in:
2026-06-22 17:58:51 +08:00
parent b9257cc50a
commit fa06fee64c
9 changed files with 123 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<link rel="icon" type="image/png" href="/logo.png" />
<link rel="apple-touch-icon" href="/logo.png" />
<link rel="manifest" href="/site.webmanifest" />

View File

@@ -50,6 +50,22 @@ button { cursor: pointer; font-family: inherit; }
html, body {
scrollbar-width: none;
-ms-overflow-style: none;
touch-action: manipulation;
}
html {
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
@media (max-width: 1023px) {
input,
select,
textarea,
.el-input__inner,
.el-textarea__inner {
font-size: 16px !important;
}
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {

View File

@@ -73,6 +73,7 @@ export default defineConfig(({ mode }) => {
},
publicDir: resolve(__dirname, '../../packages/shared/public'),
server: {
host: true,
port: 5174,
proxy: {
'/api': { target: 'http://localhost:3000', changeOrigin: true },