Skip to content

Commit a79fe57

Browse files
Fix scrolling bar issue for long content in chat UI (#2044)
* fix scrolling bar issue limit .chatContainer height and expand chatMessageStream * fix supporting content panel resize * add resize and limit analysis height
1 parent 29c0920 commit a79fe57

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/frontend/src/pages/chat/Chat.module.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
flex-direction: column;
1717
align-items: center;
1818
width: 100%;
19+
max-height: calc(100vh - 10rem);
1920
}
2021

2122
.chatEmptyState {
@@ -43,13 +44,13 @@
4344
.chatMessageStream {
4445
flex-grow: 1;
4546
max-height: 64rem;
46-
max-width: 64.25rem;
4747
width: 100%;
4848
overflow-y: auto;
49-
padding-left: 1rem;
50-
padding-right: 1rem;
49+
padding: 0 2rem;
5150
display: flex;
5251
flex-direction: column;
52+
resize: horizontal;
53+
min-width: 50vw;
5354
}
5455

5556
.chatMessageGpt {
@@ -76,7 +77,7 @@
7677
.chatAnalysisPanel {
7778
flex: 1;
7879
overflow-y: auto;
79-
max-height: 89vh;
80+
max-height: 85vh;
8081
margin-left: 1.25rem;
8182
margin-right: 1.25rem;
8283
}

0 commit comments

Comments
 (0)