refactor: 移除侧边栏中的系统信息和设置按钮

This commit is contained in:
2025-08-06 15:26:19 +08:00
parent 38cbf669f5
commit 5ad4e7cef6
2 changed files with 1 additions and 82 deletions

View File

@@ -136,6 +136,7 @@
padding: 8px 0; padding: 8px 0;
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
margin-bottom: 16px;
} }
.nav-section-title { .nav-section-title {
@@ -276,68 +277,6 @@
background: var(--accent-400); background: var(--accent-400);
} }
/* 系统信息 */
.sidebar-footer {
padding: 16px 20px;
border-top: 1px solid var(--border-light);
background: var(--bg-tertiary);
margin-top: auto;
}
.system-info {
margin-bottom: 12px;
}
.info-item {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;
color: var(--text-secondary);
margin-bottom: 4px;
}
.info-label {
font-weight: 500;
}
.info-value {
color: var(--text-primary);
font-weight: 600;
}
/* 黑暗模式下的系统信息 */
[data-theme="dark"] .info-value {
color: var(--accent-200);
}
.settings-button {
width: 100%;
padding: 8px 12px;
background: none;
border: 1px solid var(--border-medium);
border-radius: var(--radius-md);
color: var(--text-secondary);
font-size: 13px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.settings-button:hover {
background: var(--bg-primary);
color: var(--text-primary);
border-color: var(--border-dark);
}
.settings-button:focus-visible {
outline: 2px solid var(--accent-600);
outline-offset: 2px;
}
/* 移动端侧边栏 */ /* 移动端侧边栏 */
.sidebar-backdrop { .sidebar-backdrop {
position: fixed; position: fixed;

View File

@@ -83,26 +83,6 @@
</ul> </ul>
</nav> </nav>
<!-- 系统信息 -->
<div class="sidebar-footer">
<div class="system-info">
<div class="info-item">
<span class="info-label">总记录数</span>
<span class="info-value">{{.Total}}</span>
</div>
<div class="info-item">
<span class="info-label">最后更新</span>
<span class="info-value">{{.LastUpdate}}</span>
</div>
</div>
<button class="settings-button" onclick="openSettings()" aria-label="系统设置">
<svg width="16" height="16" fill="none" viewBox="0 0 24 24">
<path d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" stroke="currentColor" stroke-width="2"/>
<path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" stroke="currentColor" stroke-width="2"/>
</svg>
设置
</button>
</div>
</aside> </aside>
<!-- 移动端遮罩层 --> <!-- 移动端遮罩层 -->