Browse Source

fix(frontend): 全局重置 body margin 消除页面多余滚动

浏览器默认 body margin:8px 未清零,导致 .layout-container(100vh) 与登录页 min-height:100vh 超出视口出现滚动条及四周白边。在 shared.css 顶部新增全局基础重置(margin/padding 清零 + box-sizing:border-box)。
Spring-AI-1.1.2
wanghanlin 2 weeks ago
parent
commit
1ea991e5b8
  1. 7
      frontend/src/styles/shared.css

7
frontend/src/styles/shared.css

@ -6,6 +6,13 @@
* 不再散落硬编码 hex保证全站配色一致 * 不再散落硬编码 hex保证全站配色一致
*/ */
/* ====== 全局基础重置 ====== */
* { box-sizing: border-box; }
html, body, #app {
margin: 0;
padding: 0;
}
/* ====== 工具栏 ====== */ /* ====== 工具栏 ====== */
.toolbar { .toolbar {
display: flex; display: flex;

Loading…
Cancel
Save