Skip to content

Commit d90cbcd

Browse files
committed
chore: refactor CSS to avoid needing to know about the input sentinel object
1 parent a9a54d1 commit d90cbcd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

js/chat/chat.scss

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ shiny-chat-container {
77
grid-template-columns: 1fr;
88
grid-template-rows: 1fr auto;
99
margin: 0 auto;
10-
gap: 0.625rem;
10+
gap: 0;
1111
padding: var(--_chat-container-padding);
1212
padding-bottom: 0; // Bottom padding is on input element
13-
overflow: clip;
1413

1514
p:last-child {
1615
margin-bottom: 0;
@@ -56,6 +55,7 @@ shiny-chat-messages {
5655
flex-direction: column;
5756
gap: 2rem;
5857
overflow: auto;
58+
margin-bottom: 1rem;
5959

6060
// Make space for the scroll bar
6161
--_scroll-margin: 1rem;
@@ -139,12 +139,6 @@ shiny-chat-input {
139139
}
140140
}
141141

142-
shiny-chat-input-sentinel {
143-
// sentinel element with 0 height that lets us know when input element is floating
144-
height: 0;
145-
width: 100%;
146-
}
147-
148142
/*
149143
Disable the page-level pulse when the chat input is disabled
150144
(i.e., when a response is being generated and brought into the chat)

0 commit comments

Comments
 (0)