fix: qr modal header
Some checks are pending
Build and Release 3X-UI / build (386) (push) Waiting to run
Build and Release 3X-UI / build (amd64) (push) Waiting to run
Build and Release 3X-UI / build (arm64) (push) Waiting to run
Build and Release 3X-UI / build (armv5) (push) Waiting to run
Build and Release 3X-UI / build (armv6) (push) Waiting to run
Build and Release 3X-UI / build (armv7) (push) Waiting to run
Build and Release 3X-UI / build (s390x) (push) Waiting to run

This commit is contained in:
Shishkevich D. 2025-04-19 22:43:24 +07:00 committed by GitHub
parent e6389f3fb3
commit d9ab8b4ce4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,26 +1,26 @@
{{define "modals/qrcodeModal"}}
<a-modal id="qrcode-modal" v-model="qrModal.visible" :closable="true" :class="themeSwitcher.currentTheme"
width="fit-content" :dialog-style="isMobile ? { top: '18px' } : {}" :footer="null">
<template #title>
<a-space direction="horizontal">
<span>[[ qrModal.title ]]</span>
<a-popover :overlay-class-name="themeSwitcher.currentTheme" trigger="click" placement="bottom">
<template slot="content">
<a-space direction="vertical">
<template v-for="(row, index) in qrModal.qrcodes">
<b>[[ row.remark ]]</b>
<a-space direction="horizontal">
<a-switch size="small" :checked="row.useIPv4" @click="toggleIPv4(index)"></a-switch>
<span>{{ i18n "useIPv4ForHost" }}</span>
</a-space>
</template>
</a-space>
</template>
<a-icon type="setting"></a-icon>
</a-popover>
</a-space>
</template>
<tr-qr-modal class="qr-modal">
<template #title>
<a-space direction="horizontal">
<span>[[ qrModal.title ]]</span>
<a-popover :overlay-class-name="themeSwitcher.currentTheme" trigger="click" placement="bottom">
<template slot="content">
<a-space direction="vertical">
<template v-for="(row, index) in qrModal.qrcodes">
<b>[[ row.remark ]]</b>
<a-space direction="horizontal">
<a-switch size="small" :checked="row.useIPv4" @click="toggleIPv4(index)"></a-switch>
<span>{{ i18n "useIPv4ForHost" }}</span>
</a-space>
</template>
</a-space>
</template>
<a-icon type="setting"></a-icon>
</a-popover>
</a-space>
</template>
<template v-if="app.subSettings.enable && qrModal.subId">
<tr-qr-box class="qr-box">
<a-tag color="purple" class="qr-tag"><span>{{ i18n "pages.settings.subSettings"}}</span></a-tag>