Skip to content

Commit

Permalink
Merge branch 'fix/remove-screen-size-conditions' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
yasincaliskan committed Nov 16, 2023
2 parents 68eeea9 + 717c2eb commit 6eb42f6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.7",
"version": "1.0.8",
"name": "@perawallet/connect-beta",
"description": "Beta version of Pera Wallet Connect",
"main": "dist/index.js",
Expand Down
3 changes: 1 addition & 2 deletions src/modal/PeraWalletConnectModal.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -27,7 +26,7 @@ export class PeraWalletConnectModal extends HTMLElement {
peraWalletConnectModalClassNames = `${peraWalletConnectModalClassNames} ${PERA_WALLET_MODAL_CLASSNAME}--compact`;
}

if (isSmallScreen() && isMobile()) {
if (isMobile()) {
peraWalletConnectModal.innerHTML = `
<div class="${peraWalletConnectModalClassNames}">
<div class="pera-wallet-modal__body" part="body">
Expand Down
5 changes: 2 additions & 3 deletions src/modal/header/PeraWalletModalHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -19,7 +18,7 @@ const headerClassName = isMobile()
peraWalletModalHeader.innerHTML = `
<div class="${headerClassName}">
${
isSmallScreen() && isMobile()
isMobile()
? ""
: `<div class="pera-wallet-modal-header__brand">
<img src="${PeraConnectIcon}" />
Expand All @@ -38,7 +37,7 @@ peraWalletModalHeader.innerHTML = `
class="pera-wallet-button pera-wallet-modal-header__close-button">
<img
class="pera-wallet-modal-header__close-button__close-icon"
src="${isSmallScreen() && isMobile() ? CloseIconDark : CloseIcon}"
src="${isMobile() ? CloseIconDark : CloseIcon}"
/>
</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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;");
Expand Down

0 comments on commit 6eb42f6

Please sign in to comment.