From 717c2ebbb737cdb3cb5aa6f2a418797132e57c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yasin=20=C3=87al=C4=B1=C5=9Fkan?= Date: Thu, 16 Nov 2023 11:45:59 +0300 Subject: [PATCH 1/2] Remove screen size conditions --- src/modal/PeraWalletConnectModal.ts | 3 +-- src/modal/header/PeraWalletModalHeader.ts | 5 ++--- .../information/PeraWalletConnectModalInformationSection.ts | 3 +-- 3 files changed, 4 insertions(+), 7 deletions(-) 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;"); From 7eae3965209ba152fea90155f519528eea9db725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yasin=20=C3=87al=C4=B1=C5=9Fkan?= Date: Tue, 28 Nov 2023 13:05:25 +0300 Subject: [PATCH 2/2] Bump up package version to 1.3.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",