Skip to content

Commit

Permalink
fix(regression): fix messages wrapping. fix chat scroll on open
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Sep 29, 2023
1 parent 0bce511 commit ae546d0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ class ChatBox extends LitElement {
scrollbar-width: none;
}
/* unsupported by firefox */
.chat-completions-items::-webkit-scrollbar {
::-webkit-scrollbar {
width: 5px;
background-color: rgb(24, 24, 24);
}
.chat-completions-items::-webkit-scrollbar-thumb {
::-webkit-scrollbar-thumb {
background-color: rgb(50, 50, 50);
}
.chat-completions-items > div {
Expand Down Expand Up @@ -119,9 +119,11 @@ class ChatBox extends LitElement {
pointer-events: none;
overflow: hidden;
width: 100%;
scrollbar-width: thin;
}
.chat.opened {
pointer-events: auto;
overflow-y: auto;
}
input[type=text], #chatinput {
Expand Down Expand Up @@ -154,9 +156,10 @@ class ChatBox extends LitElement {
}
.chat-message {
display: flex;
padding-left: 4px;
background-color: rgba(0, 0, 0, 0.5);
list-style: none;
word-break: break-all;
}
.chat-message-fadeout {
Expand All @@ -178,7 +181,6 @@ class ChatBox extends LitElement {
}
.chat-message-part {
white-space: pre-wrap;
}
`
}
Expand Down

0 comments on commit ae546d0

Please sign in to comment.