Skip to content

Commit 6eea793

Browse files
committed
fix(ios): set keyboard resize to none
1 parent 50963ed commit 6eea793

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

capacitor.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { CapacitorConfig } from '@capacitor/cli'
2+
import { KeyboardResize } from '@capacitor/keyboard'
23
import * as fs from 'fs'
34

45
const version = fs.readFileSync('static/package.json', 'utf8').match(/"version": "(.*?)"/)?.at(1) ?? '0.0.0'
@@ -27,7 +28,8 @@ const config: CapacitorConfig = {
2728
},
2829

2930
Keyboard: {
30-
resize: 'resize'
31+
resize: KeyboardResize.None,
32+
resizeOnFullScreen: true,
3133
},
3234

3335
SafeArea: {
@@ -41,11 +43,11 @@ const config: CapacitorConfig = {
4143
}
4244
},
4345
android: {
44-
appendUserAgent: `Logseq/${version} (Android)`
46+
appendUserAgent: `Logseq/${version} (Android)`,
4547
},
4648
ios: {
4749
scheme: 'Logseq',
48-
appendUserAgent: `Logseq/${version} (iOS)`
50+
appendUserAgent: `Logseq/${version} (iOS)`,
4951
}
5052
}
5153

0 commit comments

Comments
 (0)