diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-21 18:09:05 +0300 |
|---|---|---|
| committer | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-21 18:09:05 +0300 |
| commit | 6f4eefe60181a9913155ec8c1cc644bf78b23ea3 (patch) | |
| tree | 78f71984c421ba6a27b23a0d421825da1f878352 /web/html/common | |
| parent | 510c35f450e13fc833ab2c9a59e4822c0c0f658c (diff) | |
chore: make class to get the device form factor
Diffstat (limited to 'web/html/common')
| -rw-r--r-- | web/html/common/qrcode_modal.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index 5ea1ca95..93d66fc2 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -1,6 +1,6 @@ {{define "qrcodeModal"}} <a-modal id="qrcode-modal" v-model="qrModal.visible" :title="qrModal.title" - :dialog-style="isMobileQr ? { top: '18px' } : {}" + :dialog-style="DeviceUtils.isMobile() ? { top: '18px' } : {}" :closable="true" :class="themeSwitcher.currentTheme" :footer="null" width="fit-content"> @@ -35,7 +35,6 @@ </a-modal> <script> - const isMobileQr = window.innerWidth <= 768; const qrModal = { title: '', dbInbound: new DBInbound(), |
