Skip to content

Commit 1f66fdf

Browse files
author
weiesky.wangc
committed
ui(chat): scope the 1400px chat cap to message items via .container > *
Replaces the previous .chatSectionFlex column cap, which also squeezed the input bar, approval panels, and other siblings. Now only direct children of the message scroller are width-limited (centered, responsive below); the input bar keeps its own 1000px rule and the scrollbar stays at the viewport edge. Works for both the plain and Virtuoso scrollers (shared .container).
1 parent fb02f91 commit 1f66fdf

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/components/chat/ChatView.module.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
flex-direction: column;
1515
-webkit-overflow-scrolling: touch;
1616
overscroll-behavior: contain;
17+
/* 宽屏下消息列限宽 1400px 并居中;> 选择器只收窄直接子元素(消息项),
18+
不影响 sticky 按钮 / roleFilterBar / 审批面板 / 输入条等兄弟区域。
19+
双滚动容器(普通 .container 与 Virtuoso Scroller)共用本类,一处生效。 */
20+
& > * {
21+
max-width: 1400px;
22+
margin-left: auto;
23+
margin-right: auto;
24+
width: 100%;
25+
box-sizing: border-box;
26+
}
1727
}
1828

1929
.mobileVirtuoso {
@@ -363,10 +373,6 @@
363373
flex-direction: column;
364374
overflow: hidden;
365375
position: relative;
366-
/* 宽屏下对话内容列限宽 1400px 并居中,窄屏自适应收缩 */
367-
max-width: 1400px;
368-
margin: 0 auto;
369-
width: 100%;
370376
}
371377

372378
/* 审批面板 + ChatInputBar 的共享定位容器。面板用 absolute bottom:100% 贴在输入栏之上。

0 commit comments

Comments
 (0)