fix: correct mobile web layout for client download button

This commit is contained in:
2026-02-20 16:15:54 +08:00
parent e2318ac42e
commit 6618de1aed

View File

@@ -1796,7 +1796,7 @@
{{ isLogin ? '还没有账号?' : '已有账号?' }}
<a @click="toggleAuthMode">{{ isLogin ? '立即注册' : '去登录' }}</a>
</div>
<button type="button" class="btn btn-secondary" style="margin-top: 12px;" :disabled="desktopClientDownloading" @click="downloadDesktopClient">
<button type="button" class="btn btn-secondary auth-client-download-btn" style="margin-top: 12px;" :disabled="desktopClientDownloading" @click="downloadDesktopClient">
<i :class="desktopClientDownloading ? 'fas fa-spinner fa-spin' : 'fas fa-desktop'"></i>
{{ desktopClientDownloading ? '获取安装包...' : '下载桌面客户端' }}
</button>
@@ -1822,7 +1822,7 @@
<i class="fas fa-cog"></i> 设置
</div>
<button class="btn btn-secondary" :disabled="desktopClientDownloading" @click="downloadDesktopClient">
<button class="btn btn-secondary navbar-download-btn" :disabled="desktopClientDownloading" @click="downloadDesktopClient">
<i :class="desktopClientDownloading ? 'fas fa-spinner fa-spin' : 'fas fa-download'"></i>
{{ desktopClientDownloading ? '准备中...' : '下载客户端' }}
</button>
@@ -5365,6 +5365,16 @@
border-color: var(--glass-border-hover);
}
body.enterprise-netdisk .auth-client-download-btn {
width: 100%;
}
body.enterprise-netdisk .navbar-menu .navbar-download-btn {
flex: 0 0 auto;
white-space: nowrap;
min-width: max-content;
}
body.enterprise-netdisk .btn-danger {
background: #ef4444;
border-color: #ef4444;
@@ -6870,7 +6880,8 @@
body.enterprise-netdisk .nav-item,
body.enterprise-netdisk .user-info,
body.enterprise-netdisk .navbar-menu .btn-danger {
body.enterprise-netdisk .navbar-menu .btn-danger,
body.enterprise-netdisk .navbar-menu .navbar-download-btn {
flex: 0 0 auto;
white-space: nowrap;
}