Skip to content

Commit a686180

Browse files
committed
chore: move sentinel after input
1 parent d90cbcd commit a686180

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/chat/chat.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,10 @@ class ChatContainer extends LightElement {
290290
// moves off-screen we know that the text area input is now floating, add shadow.
291291
let sentinel = this.querySelector<HTMLElement>(CHAT_INPUT_SENTINEL_TAG);
292292
if (!sentinel) {
293-
sentinel = createElement(CHAT_INPUT_SENTINEL_TAG, {}) as HTMLElement;
294-
this.input.insertAdjacentElement("beforebegin", sentinel);
293+
sentinel = createElement(CHAT_INPUT_SENTINEL_TAG, {
294+
style: "width: 100%; height: 0",
295+
}) as HTMLElement;
296+
this.input.insertAdjacentElement("afterend", sentinel);
295297
}
296298

297299
this.inputSentinel = sentinel;

0 commit comments

Comments
 (0)