Skip to content

Commit f53f4e5

Browse files
committed
fix(login): 移除空侧栏造成的布局偏移
- 登录页隐藏 VitePress 空 aside 占位 - 将登录内容容器限制为 520px 并在可用区域居中 - 修正右侧留白大于左侧的问题
1 parent 4a09bb4 commit f53f4e5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/.vitepress/theme/components/device-login.vue‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ onUnmounted(stopPolling)
190190
:global(.dark) .login-box {
191191
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
192192
}
193+
:global(.login-page .VPDoc.has-aside .aside) {
194+
display: none;
195+
}
196+
:global(.login-page .VPDoc.has-aside .content-container) {
197+
max-width: 520px;
198+
}
193199
:global(.login-page .vp-doc h1) {
194200
text-align: center;
195201
}

0 commit comments

Comments
 (0)