Skip to content

Commit 12f505f

Browse files
committed
chore: keep text input from wiggling when sticky
1 parent 6e82b70 commit 12f505f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
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 {

0 commit comments

Comments
 (0)