mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 14:43:56 +00:00
fix(ios): set keyboard resize to none
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { CapacitorConfig } from '@capacitor/cli'
|
||||
import { KeyboardResize } from '@capacitor/keyboard'
|
||||
import * as fs from 'fs'
|
||||
|
||||
const version = fs.readFileSync('static/package.json', 'utf8').match(/"version": "(.*?)"/)?.at(1) ?? '0.0.0'
|
||||
@@ -27,7 +28,8 @@ const config: CapacitorConfig = {
|
||||
},
|
||||
|
||||
Keyboard: {
|
||||
resize: 'resize'
|
||||
resize: KeyboardResize.None,
|
||||
resizeOnFullScreen: true,
|
||||
},
|
||||
|
||||
SafeArea: {
|
||||
@@ -41,11 +43,11 @@ const config: CapacitorConfig = {
|
||||
}
|
||||
},
|
||||
android: {
|
||||
appendUserAgent: `Logseq/${version} (Android)`
|
||||
appendUserAgent: `Logseq/${version} (Android)`,
|
||||
},
|
||||
ios: {
|
||||
scheme: 'Logseq',
|
||||
appendUserAgent: `Logseq/${version} (iOS)`
|
||||
appendUserAgent: `Logseq/${version} (iOS)`,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user