fix design

This commit is contained in:
MHSanaei 2026-04-28 18:42:31 +02:00
parent 882473b352
commit 856440384f
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A

View file

@ -169,6 +169,14 @@
</a-col>
<a-col :sm="24" :lg="12">
<a-card title='3X-UI' hoverable>
<template v-if="panelUpdateModal.info.updateAvailable" #extra>
<a-tooltip :overlay-class-name="themeSwitcher.currentTheme" :title='`{{ i18n "pages.index.updatePanel" }}: ${panelUpdateModal.info.latestVersion}`'>
<a-tag color="orange" style="cursor:pointer;margin:0" @click="openPanelUpdate">
<a-icon type="cloud-download"></a-icon>[[ panelUpdateModal.info.latestVersion ]]
<span v-if="!isMobile">{{ i18n "pages.index.updatePanel" }}</span>
</a-tag>
</a-tooltip>
</template>
<a rel="noopener" href="https://github.com/MHSanaei/3x-ui/releases" target="_blank">
<a-tag color="green">
<span>v{{ .cur_ver }}</span>
@ -184,12 +192,6 @@
<span>{{ i18n "pages.index.documentation" }}</span>
</a-tag>
</a>
<template #actions>
<a-space direction="horizontal" @click="openPanelUpdate" class="jc-center">
<a-icon type="cloud-download"></a-icon>
<span v-if="!isMobile">{{ i18n "pages.index.updatePanel" }}</span>
</a-space>
</template>
</a-card>
</a-col>
<a-col :sm="24" :lg="12">
@ -1430,6 +1432,13 @@
// Initial status fetch
await this.getStatus();
// Silently check for panel updates so the indicator shows on load
HttpUtil.get('/panel/api/server/getPanelUpdateInfo').then(msg => {
if (msg && msg.success && msg.obj) {
panelUpdateModal.info = msg.obj;
}
});
// Setup WebSocket for real-time updates
if (window.wsClient) {
window.wsClient.connect();