mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
安卓端MainActivity中强制WebView文本缩放为100%,防止系统字体大小影响布局。capacitor.config.ts同步禁用WebView文本缩放及键盘视口调整。CSS中统一禁用文本大小调整,修复Edge-to-Edge模式下Portal容器定位问题,提升移动端显示一致性。
28 lines
581 B
TypeScript
28 lines
581 B
TypeScript
import type { CapacitorConfig } from '@capacitor/cli'
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: 'games.wenzi.ogame',
|
|
appName: 'OGame Vue Ts',
|
|
webDir: 'docs',
|
|
server: {
|
|
androidScheme: 'https'
|
|
},
|
|
android: {
|
|
buildOptions: {
|
|
keystorePath: undefined,
|
|
keystoreAlias: undefined
|
|
},
|
|
// 禁用 WebView 文本缩放,防止系统字体设置影响布局
|
|
webContentsDebuggingEnabled: false,
|
|
allowMixedContent: false
|
|
},
|
|
plugins: {
|
|
// 禁用键盘自动调整视口
|
|
Keyboard: {
|
|
resize: 'none'
|
|
}
|
|
}
|
|
}
|
|
|
|
export default config
|