diff --git a/package.json b/package.json index 9d4a160..3dfd662 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.3.3", + "version": "1.3.4", "name": "@perawallet/connect", "description": "JavaScript SDK for integrating Pera Wallet to web applications.", "main": "dist/index.js", diff --git a/src/modal/PeraWalletConnectModal.ts b/src/modal/PeraWalletConnectModal.ts index 633458d..760c58e 100644 --- a/src/modal/PeraWalletConnectModal.ts +++ b/src/modal/PeraWalletConnectModal.ts @@ -1,5 +1,4 @@ import {isMobile} from "../util/device/deviceUtils"; -import {isSmallScreen} from "../util/screen/screenSizeUtils"; import { PERA_WALLET_CONNECT_MODAL_ID, PERA_WALLET_MODAL_CLASSNAME @@ -27,7 +26,7 @@ export class PeraWalletConnectModal extends HTMLElement { peraWalletConnectModalClassNames = `${peraWalletConnectModalClassNames} ${PERA_WALLET_MODAL_CLASSNAME}--compact`; } - if (isSmallScreen() && isMobile()) { + if (isMobile()) { peraWalletConnectModal.innerHTML = `
diff --git a/src/modal/header/PeraWalletModalHeader.ts b/src/modal/header/PeraWalletModalHeader.ts index a835283..997b8d1 100644 --- a/src/modal/header/PeraWalletModalHeader.ts +++ b/src/modal/header/PeraWalletModalHeader.ts @@ -3,7 +3,6 @@ import CloseIcon from "../../asset/icon/Close.svg"; import CloseIconDark from "../../asset/icon/Close--dark.svg"; import styles from "./_pera-wallet-modal-header.scss"; -import {isSmallScreen} from "../../util/screen/screenSizeUtils"; import {isMobile} from "../../util/device/deviceUtils"; import { PERA_WALLET_REDIRECT_MODAL_ID, @@ -19,7 +18,7 @@ const headerClassName = isMobile() peraWalletModalHeader.innerHTML = `
${ - isSmallScreen() && isMobile() + isMobile() ? "" : `
@@ -38,7 +37,7 @@ peraWalletModalHeader.innerHTML = ` class="pera-wallet-button pera-wallet-modal-header__close-button">
diff --git a/src/modal/section/information/PeraWalletConnectModalInformationSection.ts b/src/modal/section/information/PeraWalletConnectModalInformationSection.ts index 7ec32c9..3cd3c52 100644 --- a/src/modal/section/information/PeraWalletConnectModalInformationSection.ts +++ b/src/modal/section/information/PeraWalletConnectModalInformationSection.ts @@ -4,7 +4,6 @@ import NoteIcon from "../../../asset/icon/Note.svg"; import PeraWalletWithText from "../../../asset/icon/PeraWallet--with-text.svg"; import PeraWalletLogo from "../../../asset/icon/PeraWallet.svg"; -import {isSmallScreen} from "../../../util/screen/screenSizeUtils"; import styles from "./_pera-wallet-connect-modal-information-section.scss"; import {isMobile} from "../../../util/device/deviceUtils"; @@ -94,7 +93,7 @@ export class PeraWalletConnectModalInformationSection extends HTMLElement { styleSheet ); - if (isSmallScreen() && isMobile()) { + if (isMobile()) { this.shadowRoot .getElementById("pera-wallet-connect-modal-information-section-title") ?.setAttribute("style", "display: none;");