Skip to content

Commit da5fed7

Browse files
authored
chore(Chat): Small CSS adjustments (#1937)
1 parent 7db7135 commit da5fed7

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

js/chat/chat.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ shiny-chat-input {
145145

146146
margin-top: calc(-1 * var(--_input-padding-top));
147147
position: sticky;
148-
bottom: calc(-1 * var(--_input-padding-bottom));
148+
bottom: calc(-1 * var(--_input-padding-bottom) + 4px);
149+
// 4px: autoscroll adds 2px to height, this keeps input from wiggling when scrolling on top of chat
149150
padding-block: var(--_input-padding-top) var(--_input-padding-bottom);
150151

151152
textarea {

js/markdown-stream/markdown-stream.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ pre:has(.code-copy-button) {
6868
.markdown-stream-dot {
6969
// The stream dot is appended with each streaming chunk update, so the pulse animation
7070
// only shows up when streaming pauses but isn't complete.
71-
animation: markdown-stream-dot-pulse 2s infinite cubic-bezier(0.18, 0.89, 0.32, 1.28);
71+
animation: markdown-stream-dot-pulse 1.75s infinite cubic-bezier(0.18, 0.89, 0.32, 1.28);
72+
animation-delay: 250ms;
7273
display: inline-block;
7374
transform-origin: center;
7475
}

shiny/www/py-shiny/chat/chat.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shiny/www/py-shiny/chat/chat.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)