chore: make class to get the device form factor

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

No files matched your search

+1 -2
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(),