mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
fix issue where scrollbar alway shows regardless of the height
This commit is contained in:
parent
e40f93b858
commit
ba5a089382
@ -25,16 +25,15 @@
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-flow: column nowrap;
|
||||
flex: 1;
|
||||
padding: 0 15px;
|
||||
margin-bottom: 0;
|
||||
overflow-y: auto;
|
||||
|
||||
.chat-window {
|
||||
display: flex;
|
||||
overflow-y: auto;
|
||||
margin-bottom: 5px;
|
||||
// margin-bottom: 5px;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
|
||||
|
@ -251,12 +251,14 @@ class AIChat extends React.Component<{}, {}> {
|
||||
</div>
|
||||
|
||||
<OverlayScrollbarsComponent className="content" options={{ scrollbars: { autoHide: "leave" } }}>
|
||||
{/* <div className="content"> */}
|
||||
<div className="chat-window" ref={this.chatWindowScrollRef}>
|
||||
<div className="filler"></div>
|
||||
<For each="chitem" index="idx" of={chatMessageItems}>
|
||||
{this.renderChatMessage(chitem)}
|
||||
</For>
|
||||
</div>
|
||||
{/* </div> */}
|
||||
</OverlayScrollbarsComponent>
|
||||
|
||||
<div className="chat-input">
|
||||
|
Loading…
Reference in New Issue
Block a user