Skip to content

Commit

Permalink
Fix responsive + mainnet + avatard fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atmoner committed Jan 18, 2024
1 parent 6c1c417 commit a386997
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div>
<v-list>
<v-list-item
prepend-avatar="https://res.cloudinary.com/stargaze/image/upload/w_700/yzsrwjxcsjzx17acr90i.jpg"
prepend-avatar="https://i.stargaze-apis.com/MUMaEP0cKU3C7oWFkYz3G46HMlFxn4pwLdPB7MARdxM/f:jpg/resize:fit:700:::/dpr:2/plain/ipfs://bafybeia45l2eflxa4xx7ii6mhekyhh5xnucudj5tzp2upzcoeqfl4uzdr4/images/4513.png"
:title="store.nameWallet"
/>
</v-list>
Expand Down
18 changes: 9 additions & 9 deletions cosmos.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export default [
}
},
{
chainId: 'bitcanna-1',
name: 'BitCanna',
chainId: 'bitcanna-dev-1',
name: 'BitCanna testnet',
desc: 'Harnessing the power of blockchain to create equal opportunities for cannabis-related industries ',
slot: "bitcanna",
apiURL: 'https://lcd.bitcanna.io',
rpcURL: 'https://rpc.bitcanna.io',
apiURL: 'https://lcd-testnet.bitcanna.io',
rpcURL: 'https://rpc-testnet.bitcanna.io',
coinLookup: {
viewDenom: 'BCNA',
chainDenom: 'ubcna',
Expand All @@ -62,12 +62,12 @@ export default [
}
},
{
chainId: 'bitcanna-dev-1',
name: 'BitCanna testnet',
chainId: 'bitcanna-1',
name: 'BitCanna',
desc: 'Harnessing the power of blockchain to create equal opportunities for cannabis-related industries ',
slot: "bitcanna",
apiURL: 'https://lcd-testnet.bitcanna.io',
rpcURL: 'https://rpc-testnet.bitcanna.io',
apiURL: 'https://lcd.bitcanna.io',
rpcURL: 'https://rpc.bitcanna.io',
coinLookup: {
viewDenom: 'BCNA',
chainDenom: 'ubcna',
Expand All @@ -91,5 +91,5 @@ export default [
wasm: false,
group: true,
}
}
},
]
18 changes: 14 additions & 4 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
>{{ store.nameWallet }}'s portfolio</h1> -->

<v-list-item
class="background"
:class="windowWidth > 1755 ? 'background' : 'background fill-height d-flex flex-column'"
:prepend-avatar="store.loggedType + '.svg'"
>
<h1>{{ store.nameWallet }}'s portfolio</h1>
</v-list-item>
</v-col>
<!-- {{ windowHeight }}, {{ windowWidth }} -->
<v-row>
<v-col
class="fill-height d-flex flex-column justify-center align-center"
Expand Down Expand Up @@ -218,10 +219,10 @@
</v-card-text>
</v-card>

<v-col class="mt-6 ">
<v-col class="mt-6 fill-height d-flex flex-column ">
<h1
class="ml-7"

Check warning on line 224 in pages/index.vue

View workflow job for this annotation

GitHub Actions / Build and test (16.x)

Expected 1 line break before closing bracket, but 2 line breaks found
style="text-align:left; float:left;"

>
Transactions
</h1>
Expand Down Expand Up @@ -285,6 +286,7 @@
</template>
</v-col>
<v-divider
v-if="windowWidth > 1755"
class="mx-4"
vertical
/>
Expand Down Expand Up @@ -552,6 +554,8 @@ export default {
walletDistribution: false,
dialogReceive: false,
tab: null,
windowHeight: '',
windowWidth: '',
}),
computed: {
Expand Down Expand Up @@ -580,7 +584,13 @@ export default {
watch: {},
async mounted() {
this.windowHeight = window.innerHeight
this.windowWidth = window.innerWidth;
window.addEventListener('resize', () => {
this.windowHeight = window.innerHeight
this.windowWidth = window.innerWidth;
})
const resultSender = await axios(
cosmosConfig[this.store.chainSelected].apiURL +
"/cosmos/tx/v1beta1/txs?events=message.sender=%27" +
Expand Down

0 comments on commit a386997

Please sign in to comment.