Skip to content

Commit

Permalink
Merge pull request #796 from TokenScript/fix/authenticate-on-chain
Browse files Browse the repository at this point in the history
Fix/authenticate on chain
  • Loading branch information
nicktaras authored Aug 16, 2023
2 parents 7ad2475 + 553a313 commit 69349a4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/outlet/attestationIdClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export class AttestationIdClient {
display: flex;
flex-direction: column;
padding: 30px;
z-index: 9999;
}
#${wrapperID} div:hover {
box-shadow: 0 0px 14px #ffff !important;
Expand Down
13 changes: 9 additions & 4 deletions src/outlet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export const defaultConfig = {
whitelistDialogHeight: '350px',
}

export const attestationWindowConfig = {
max_width: window.innerWidth < 700 ? '400px' : '450px',
min_height: window.innerHeight < 600 ? '600px' : '650px',
}

export class Outlet extends LocalOutlet {
// private ticketStorage: TicketStorage
private whitelist: Whitelist
Expand Down Expand Up @@ -173,8 +178,8 @@ export class Outlet extends LocalOutlet {
this.sendMessageResponse({
evtid: evtid,
evt: ResponseActionBase.SHOW_FRAME,
max_width: this.tokenConfig.whitelistDialogWidth,
min_height: this.tokenConfig.whitelistDialogHeight,
max_width: attestationWindowConfig.max_width,
min_height: attestationWindowConfig.min_height,
})
})

Expand Down Expand Up @@ -225,8 +230,8 @@ export class Outlet extends LocalOutlet {
this.sendMessageResponse({
evtid: evtid,
evt: ResponseActionBase.SHOW_FRAME,
max_width: this.tokenConfig.whitelistDialogWidth,
min_height: this.tokenConfig.whitelistDialogHeight,
max_width: attestationWindowConfig.max_width,
min_height: attestationWindowConfig.min_height,
})
},
redirect,
Expand Down
2 changes: 1 addition & 1 deletion src/theme/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

.overlay-tn.popup-tn {
position: fixed;
z-index: 9999;
z-index: 9000;
}

.overlay-tn.popup-tn.bottom-right {
Expand Down
6 changes: 6 additions & 0 deletions src/theme/modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
justify-content: center;
}

@media (max-width: 768px) {
.modal-content-tn {
width: 90%;
}
}

/* Add Animation */
@-webkit-keyframes animatetop {
from {
Expand Down

0 comments on commit 69349a4

Please sign in to comment.