chore: make class to get the device form factor

This commit is contained in:
Shishkevich D.
2025-03-21 15:09:05 +00:00
parent 510c35f450
commit 6f4eefe601
5 changed files with 11 additions and 6 deletions

View File

@@ -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(),