Skip to content

Commit

Permalink
feat: add styles for the claim name modal in mobile (#2118)
Browse files Browse the repository at this point in the history
* feat: add styles for the claim name modal in mobile

* fix: race condition between the tokenId being fetched and tx mined

* chore: remove console logs
  • Loading branch information
juanmahidalgo authored Jan 30, 2024
1 parent d980344 commit 2b83099
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,45 @@
flex: 1 0 auto;
margin-left: 12px;
}

@media (max-width: 767px) {
.ClaimNameFatFingerModal.ui.modal > .ui.form > .content {
padding: 32px;
margin: 0;
}
.ClaimNameFatFingerModal.ui.modal > .ui.form > .content .dcl.field {
min-width: 100%;
}
.ClaimNameFatFingerModal.ui.modal .paymentMethodContainer {
flex-direction: column;
align-items: flex-start;
}
.ClaimNameFatFingerModal.ui.modal .payWithTitle {
margin-bottom: 12px;
}

.ClaimNameFatFingerModal .baseGradient {
width: 100%;
}

.ClaimNameFatFingerModal.ui.modal > .ui.form > .actions {
margin: 0;
flex-direction: row;
padding: 32px;
margin-top: auto;
}

.ClaimNameFatFingerModal.ui.modal
> .ui.form
> .actions
> .ui.button:not(.primary),
.ClaimNameFatFingerModal.ui.modal .ui.button:not(.primary) {
margin: 0;
}

.ClaimNameFatFingerModal .ui.form {
display: flex;
flex-direction: column;
flex: 1;
}
}
4 changes: 2 additions & 2 deletions webapp/src/components/SuccessPage/SuccessPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export function SuccessPage(props: Props) {
const assetType = search.get('assetType')
const subdomain = search.get('subdomain')

// this is a workaround to show the NAME while the transaction is being mined
if (subdomain && isLoading) {
// this is a workaround to show the NAME while the transaction is being mined or the tokenId getting retrieved.
if (subdomain && (isLoading || !tokenId)) {
return (
<div className={styles.pageContainer}>
<Navbar />
Expand Down

0 comments on commit 2b83099

Please sign in to comment.