mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
fix: 禁用WebView文本缩放并修复Portal定位
安卓端MainActivity中强制WebView文本缩放为100%,防止系统字体大小影响布局。capacitor.config.ts同步禁用WebView文本缩放及键盘视口调整。CSS中统一禁用文本大小调整,修复Edge-to-Edge模式下Portal容器定位问题,提升移动端显示一致性。
This commit is contained in:
@@ -11,6 +11,15 @@ const config: CapacitorConfig = {
|
||||
buildOptions: {
|
||||
keystorePath: undefined,
|
||||
keystoreAlias: undefined
|
||||
},
|
||||
// 禁用 WebView 文本缩放,防止系统字体设置影响布局
|
||||
webContentsDebuggingEnabled: false,
|
||||
allowMixedContent: false
|
||||
},
|
||||
plugins: {
|
||||
// 禁用键盘自动调整视口
|
||||
Keyboard: {
|
||||
resize: 'none'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user