feat(navigation): 依据Git提交历史更新系统版本号为1.52.1并优化侧边栏账号防截断显示

This commit is contained in:
xuans 2026-10-17 22:00:49 +08:00
parent 4282d662c0
commit 6504e80f89
7 changed files with 14 additions and 14 deletions

View File

@ -1,3 +1,3 @@
package buildinfo package buildinfo
const Version = "0.1.0" const Version = "1.52.1"

View File

@ -1,12 +1,12 @@
{ {
"name": "scert-frontend", "name": "scert-frontend",
"version": "0.1.0", "version": "1.52.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "scert-frontend", "name": "scert-frontend",
"version": "0.1.0", "version": "1.52.1",
"dependencies": { "dependencies": {
"vue": "3.5.41" "vue": "3.5.41"
}, },

View File

@ -1,7 +1,7 @@
{ {
"name": "scert-frontend", "name": "scert-frontend",
"private": true, "private": true,
"version": "0.1.0", "version": "1.52.1",
"type": "module", "type": "module",
"packageManager": "npm@11.17.0", "packageManager": "npm@11.17.0",
"engines": { "engines": {

View File

@ -49,7 +49,7 @@
.dashboard-workspace { .dashboard-workspace {
display: grid; display: grid;
grid-template-columns: minmax(0, 1fr) clamp(176px, 20%, 220px); grid-template-columns: minmax(0, 1fr) clamp(210px, 22%, 256px);
grid-template-areas: "main submenu"; grid-template-areas: "main submenu";
gap: 18px; gap: 18px;
min-height: 0; min-height: 0;
@ -142,7 +142,7 @@
@media (max-width: 1100px) { @media (max-width: 1100px) {
.dashboard-workspace { .dashboard-workspace {
grid-template-columns: minmax(0, 1fr) 180px; grid-template-columns: minmax(0, 1fr) 210px;
gap: 14px; gap: 14px;
} }

View File

@ -124,7 +124,7 @@
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
margin: 0 0 10px; margin: 0 0 10px;
padding: 12px; padding: 10px 10px;
border: 1px solid #e2e8f2; border: 1px solid #e2e8f2;
border-radius: 10px; border-radius: 10px;
background: #f8faff; background: #f8faff;
@ -157,13 +157,13 @@
.navigation-account-row { .navigation-account-row {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 6px;
width: 100%; width: 100%;
min-width: 0; min-width: 0;
} }
.navigation-account-name { .navigation-account-name {
font-size: 14px; font-size: 13px;
font-weight: 700; font-weight: 700;
color: #0f172a; color: #0f172a;
overflow: hidden; overflow: hidden;
@ -177,7 +177,7 @@
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 2px 8px; padding: 2px 6px;
border-radius: 6px; border-radius: 6px;
font-size: 11px; font-size: 11px;
font-weight: 600; font-weight: 600;
@ -204,9 +204,9 @@
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 6px; gap: 4px;
margin-left: auto; margin-left: auto;
padding: 3px 6px; padding: 2px 4px;
border: none; border: none;
border-radius: 6px; border-radius: 6px;
background: transparent; background: transparent;

View File

@ -85,7 +85,7 @@ defineEmits(["select", "settings"]);
<div v-if="currentUser" class="navigation-account-card" aria-label="当前登录账号"> <div v-if="currentUser" class="navigation-account-card" aria-label="当前登录账号">
<div class="navigation-account-header"> <div class="navigation-account-header">
<span class="navigation-account-label">当前账号</span> <span class="navigation-account-label">当前账号</span>
<span class="navigation-version-label">版本 {{ version || "0.1.0" }}</span> <span class="navigation-version-label">版本 {{ version || "1.52.1" }}</span>
</div> </div>
<div class="navigation-account-row"> <div class="navigation-account-row">
<strong class="navigation-account-name" :title="currentUser.account">{{ currentUser.account || "未命名账号" }}</strong> <strong class="navigation-account-name" :title="currentUser.account">{{ currentUser.account || "未命名账号" }}</strong>

View File

@ -60,7 +60,7 @@ test("系统设置导航仅对当前已确认的超级管理员显示", async ()
const html = await renderComponent("../Dashboard/DashboardNavigation.vue", { const html = await renderComponent("../Dashboard/DashboardNavigation.vue", {
activeSection: "overview", sections: [], activeSection: "overview", sections: [],
currentUser: role ? { account: "测试", role } : null, currentUser: role ? { account: "测试", role } : null,
version: "0.1.0", version: "1.52.1",
roleLabels: workspaceRoleLabels, roleLabels: workspaceRoleLabels,
loggingOut: false, error: "", logout() {}, loggingOut: false, error: "", logout() {},
}); });