style(navigation): 去除侧边栏底部SSL证书管理字样并按卡片宽度左右5px优化侧边栏等宽自适应布局

This commit is contained in:
xuans committed 2026-10-18 02:14:26 +08:00
1 parent 6504e80f89
commit 948a548e35
3 files changed
+30 -24

No files matched your search

@@ -7,8 +7,9 @@
gap: 2px;
min-height: 0;
overflow-y: auto;
padding: 2px 0 2px 12px;
padding: 2px 5px;
border-left: 1px solid #e2e8f2;
box-sizing: border-box;
background: transparent;
}
@@ -30,8 +31,7 @@
}
.navigation-heading span,
.navigation-group,
.navigation-footer {
.navigation-group {
color: #7a879d;
font-size: 11px;
}
@@ -82,7 +82,7 @@
position: absolute;
top: 8px;
bottom: 8px;
left: -13px;
left: -6px;
width: 3px;
border-radius: 3px;
background: currentColor;
@@ -132,9 +132,9 @@
}
.navigation-account-header {
display: flex;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
}
@@ -152,10 +152,12 @@
font-weight: 500;
line-height: 1.4;
white-space: nowrap;
text-align: right;
}
.navigation-account-row {
display: flex;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
align-items: center;
gap: 6px;
width: 100%;
@@ -169,7 +171,6 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1 1 auto;
min-width: 0;
}
@@ -177,7 +178,7 @@
display: inline-flex;
align-items: center;
justify-content: center;
padding: 2px 6px;
padding: 2px 4px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
@@ -186,6 +187,8 @@
background: #fef2f2;
color: #ef4444;
border: 1px solid #fee2e2;
text-align: center;
min-width: 0;
}
.navigation-role-badge.role-admin {
@@ -205,7 +208,7 @@
align-items: center;
justify-content: center;
gap: 4px;
margin-left: auto;
justify-content: flex-end;
padding: 2px 4px;
border: none;
border-radius: 6px;
@@ -264,10 +267,6 @@
overflow-wrap: anywhere;
}
.navigation-footer {
margin: 4px 12px 0;
padding: 0 4px;
}
@media (max-width: 760px) {
.dashboard-navigation {
@@ -283,8 +282,7 @@
}
.navigation-heading,
.navigation-group,
.navigation-footer {
.navigation-group {
display: none;
}
@@ -85,7 +85,7 @@ defineEmits(["select", "settings"]);
<div v-if="currentUser" class="navigation-account-card" aria-label="当前登录账号">
<div class="navigation-account-header">
<span class="navigation-account-label">当前账号</span>
<span class="navigation-version-label">版本 {{ version || "1.52.1" }}</span>
<span class="navigation-version-label">版本 {{ version ? (version.startsWith("v") || version.startsWith("V") ? version : "V" + version) : "V1.52.1" }}</span>
</div>
<div class="navigation-account-row">
<strong class="navigation-account-name" :title="currentUser.account">{{ currentUser.account || "未命名账号" }}</strong>
@@ -128,7 +128,6 @@ defineEmits(["select", "settings"]);
</button>
</div>
<p v-if="error" class="navigation-error" role="alert">{{ error }}</p>
<p class="navigation-footer">SSL 证书管理</p>
</div>
</nav>
</template>