Skip to content

Commit

Permalink
Fix collapse mode on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed Aug 16, 2024
1 parent 6c88be8 commit 899df78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-koni-ui/src/connector/telegram/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class TelegramConnector {
const windowHeight = window.innerHeight;
const currentHeight = TelegramWebApp.viewportHeight || 600;
const keyboardHeight = windowHeight - currentHeight;
const isSmallScreen = currentHeight < 600 && currentHeight > 100;
const isSmallScreen = currentHeight < 600 && TelegramWebApp.isExpanded;
const updateValue = isSmallScreen ? `${currentHeight}px` : '100vh';
const keyboardValue = isSmallScreen ? `${keyboardHeight}px` : '0';

Expand Down

0 comments on commit 899df78

Please sign in to comment.