|
1 | 1 | <template> |
2 | 2 | <v-dialog width="420" v-model="showState"> |
3 | | - <v-card class="pa-sm-1 pa-md-2"> |
4 | | - <template #title> |
5 | | - <h4 class="text-h4">{{ tt('Use on Mobile Device') }}</h4> |
| 3 | + <one-column-dialog-layout :title="tt('Use on Mobile Device')" :cancel-button-title="tt('Close')" |
| 4 | + @cancel="showState = false"> |
| 5 | + <template #content> |
| 6 | + <div class="text-body-1 text-wrap my-4">{{ tt('You can scan the QR code below on your mobile device.') }}</div> |
| 7 | + <div class="d-flex justify-center w-100"> |
| 8 | + <v-img alt="qrcode" class="img-url-qrcode" :src="mobileUrlQrCodePath"> |
| 9 | + <template #placeholder> |
| 10 | + <div class="d-flex align-center justify-center fill-height"> |
| 11 | + <v-progress-circular color="grey-500" indeterminate size="48"></v-progress-circular> |
| 12 | + </div> |
| 13 | + </template> |
| 14 | + <template #error> |
| 15 | + <div class="d-flex align-center justify-center fill-height"> |
| 16 | + <span class="text-body-1">{{ tt('Failed to load QR code') }}</span> |
| 17 | + </div> |
| 18 | + </template> |
| 19 | + </v-img> |
| 20 | + </div> |
6 | 21 | </template> |
7 | | - <template #subtitle> |
8 | | - <div class="text-body-1 text-wrap mt-4">{{ tt('You can scan the QR code below on your mobile device.') }}</div> |
| 22 | + |
| 23 | + <template #footer> |
| 24 | + <v-spacer /> |
| 25 | + <v-btn :href="mobileVersionPath">{{ tt('Switch to Mobile Version') }}</v-btn> |
9 | 26 | </template> |
10 | | - <v-card-text> |
11 | | - <v-row> |
12 | | - <v-col cols="12" md="12"> |
13 | | - <div class="w-100 d-flex justify-center"> |
14 | | - <v-img alt="qrcode" class="img-url-qrcode" :src="mobileUrlQrCodePath"> |
15 | | - <template #placeholder> |
16 | | - <div class="d-flex align-center justify-center fill-height"> |
17 | | - <v-progress-circular color="grey-500" indeterminate size="48"></v-progress-circular> |
18 | | - </div> |
19 | | - </template> |
20 | | - <template #error> |
21 | | - <div class="d-flex align-center justify-center fill-height"> |
22 | | - <span class="text-body-1">{{ tt('Failed to load QR code') }}</span> |
23 | | - </div> |
24 | | - </template> |
25 | | - </v-img> |
26 | | - </div> |
27 | | - </v-col> |
28 | | - </v-row> |
29 | | - </v-card-text> |
30 | | - <v-card-text> |
31 | | - <div class="w-100 d-flex justify-center flex-wrap mt-sm-1 mt-md-2 gap-4"> |
32 | | - <v-btn :href="mobileVersionPath">{{ tt('Switch to Mobile Version') }}</v-btn> |
33 | | - <v-btn color="secondary" variant="tonal" @click="showState = false">{{ tt('Close') }}</v-btn> |
34 | | - </div> |
35 | | - </v-card-text> |
36 | | - </v-card> |
| 27 | + </one-column-dialog-layout> |
37 | 28 | </v-dialog> |
38 | 29 | </template> |
39 | 30 |
|
|
0 commit comments