Browse Source

add mobile version for balance dashboard

main
matthew 2 years ago
parent
commit
f95688dd1c
  1. 24
      searching-front/app/core/pages/State/styles.module.css
  2. 4
      searching-front/services/domain-watcher.ts

24
searching-front/app/core/pages/State/styles.module.css

@ -86,8 +86,6 @@
margin-left: 8px;
}
.button {
position: absolute;
top: 2px;
@ -168,7 +166,7 @@
.newestListItemRight:hover .tonScanIcon {
color: white;
background: var(--button_primary);
transition: all .3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.tonScanIcon {
@ -182,8 +180,24 @@
margin-left: 4px;
}
.siteButton,
.tonScanIcon {
transition: background-color 0.2s ease-in-out;
}
@media only screen and (max-width: 500px) {
.newestListItem {
flex-direction: column;
}
.newestListItemRight,
.newestListItemLeft {
padding: 24px 34px;
justify-content: center;
}
.newestListItemRight {
text-align: left;
.siteButton, .tonScanIcon {
transition: background-color .2s ease-in-out;
border-top: 1px solid var(--border_color_main);
border-left: none;
}
}

4
searching-front/services/domain-watcher.ts

@ -24,7 +24,7 @@ const getFullUrl = (dmn: string) => `http://${dmn}`
interface UpsertDmnParams {
available: boolean
walletAddress?: string
tonBalance?: number
tonBalance?: string
}
const upsertDmn = async (
dmn: string,
@ -107,8 +107,10 @@ const fetchDomainInfo = async (url: string) => {
address,
}
}
console.log('There is no domain info ofr', url)
return null
} catch (e) {
console.log('Failed fetch domain info for', url,e)
return null
}
}

Loading…
Cancel
Save