修复:桌面端缩放窗口不自适应、出现横竖滚动条
整站是视口锁定的 app shell(html/body/#app 都 height:100%,滚动交给内部容器), 但桌面端 @media 只补了侧栏偏移: 1)文档自身没锁滚动 → 内部只要有一行没收缩下(nowrap 胶囊/代码块/宽表格)就把内容顶出视口, 浏览器给窗口加横向滚动条;横向条吃掉一屏高度,而 #app 死守 height:100% → 竖向条跟着冒出来, 表现为缩窗口页面不动、只多滚动条。 2)#app 桌面宽度靠 max-width:none + margin auto 推导,不给显式宽度 → 补 width:calc(100% - 侧栏)。 改动:html/body 加 overflow:hidden(所有滚动都在内部容器,文档从不需要滚动); #app 桌面端显式算宽度并随之收缩;#chat-view/#welcome-view/.set-scroll 显式 overflow-x:hidden (overflow-y:auto 会把 visible 的 overflow-x 算成 auto,宽代码块/表格自带横向滚动,不该让整体溢出)。 移动端行为不变。 顺带修 index.html 里被误写坏的 welcome-slogan class 名(标语样式此前一直没生效)。
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
<div class="logo-badge">
|
||||
<svg class="ic" viewBox="0 0 24 24"><rect x="4" y="8" width="16" height="12" rx="3"></rect><line x1="12" y1="4" x2="12" y2="8"></line><circle cx="12" cy="3" r="1.4"></circle><circle cx="9" cy="13.5" r="1" fill="currentColor" stroke="none"></circle><circle cx="15" cy="13.5" r="1" fill="currentColor" stroke="none"></circle><line x1="9.5" y1="17" x2="14.5" y2="17"></line></svg>
|
||||
</div>
|
||||
<div class="welcome-slog</title>an">选择模式开始对话</div>
|
||||
<div class="welcome-slogan">选择模式开始对话</div>
|
||||
</div>
|
||||
|
||||
<div class="mode-switch" role="tablist" id="mode-switch">
|
||||
|
||||
Reference in New Issue
Block a user