|
3 | 3 | <NodeIcon color="currentColor" :width="30" class="ml-3 text-primary" />
|
4 | 4 | <div class="ml-2 text-subtitle-1 text-blu">
|
5 | 5 | FUNC
|
| 6 | + {{ |
| 7 | + store.showMachineName && store.machineName |
| 8 | + ? `(${store.machineName})` |
| 9 | + : "" |
| 10 | + }} |
6 | 11 | <div class="ml-1 app-version text-grey">{{ appVersion }}</div>
|
7 | 12 | </div>
|
8 | 13 | <v-spacer />
|
|
18 | 23 | />
|
19 | 24 | <v-tooltip text="Settings" activator="parent" location="bottom" />
|
20 | 25 | </v-btn>
|
21 |
| - <v-btn color="primary" variant="tonal" class="mr-3"> |
22 |
| - {{ formatAddr(activeAccount?.address) || "Connect Wallet" }} |
| 26 | + <v-btn |
| 27 | + color="primary" |
| 28 | + variant="tonal" |
| 29 | + :icon="store.showMachineName && xs" |
| 30 | + class="mr-3" |
| 31 | + > |
| 32 | + <template v-if="!store.showMachineName || !xs"> |
| 33 | + {{ formatAddr(activeAccount?.address) || "Connect Wallet" }} |
| 34 | + </template> |
| 35 | + <template v-else> |
| 36 | + <v-icon :icon="mdiWallet" /> |
| 37 | + </template> |
23 | 38 | <v-menu activator="parent" v-model="store.connectMenu" scrim>
|
24 | 39 | <v-list>
|
25 | 40 | <v-container :min-width="350">
|
@@ -131,13 +146,16 @@ import {
|
131 | 146 | mdiLightningBoltOutline,
|
132 | 147 | mdiMinusCircleOutline,
|
133 | 148 | mdiPlusCircleOutline,
|
| 149 | + mdiWallet, |
134 | 150 | } from "@mdi/js";
|
135 | 151 | import { Wallet, WalletAccount, useWallet } from "@txnlab/use-wallet-vue";
|
136 | 152 | import { modelsv2 } from "algosdk";
|
| 153 | +import { useDisplay } from "vuetify"; |
137 | 154 |
|
138 | 155 | const store = useAppStore();
|
139 | 156 | const { activeAccount, activeNetwork, activeWallet, algodClient, wallets } =
|
140 | 157 | useWallet();
|
| 158 | +const { xs } = useDisplay(); |
141 | 159 |
|
142 | 160 | const appVersion = __APP_VERSION__;
|
143 | 161 | const account = ref<modelsv2.Account>();
|
|
0 commit comments