Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 26 additions & 21 deletions src/components/MessageComposer/styling/MessageComposer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,27 +191,6 @@
ease-out;
}

.str-chat__textarea {
flex: 1;
min-width: 0;
position: relative;
display: flex;
align-items: center;
width: 100%;

textarea {
background: transparent;
color: var(--str-chat__input-text-default);
font: var(--str-chat__font-body-default);
resize: none;
border: none;
box-shadow: none;
outline: none;
width: 100%;
scrollbar-width: none;
}
}

.str-chat__emoji-picker-button {
display: flex;
cursor: pointer;
Expand Down Expand Up @@ -265,6 +244,32 @@
}
}

// Scoped to the TextareaComposer's own elements (not the composer-controls
// wrapper) so the textarea fills its container in any composer layout β€” e.g.
// a custom composer that renders <TextareaComposer> without the default
// MessageComposerUI. Without this the bare <textarea> falls back to its
// intrinsic `cols` width (~160px).
.str-chat__textarea {
flex: 1;
min-width: 0;
position: relative;
display: flex;
align-items: center;
width: 100%;

textarea {
background: transparent;
color: var(--str-chat__input-text-default);
font: var(--str-chat__font-body-default);
resize: none;
border: none;
box-shadow: none;
outline: none;
width: 100%;
scrollbar-width: none;
}
}

.str-chat__message-composer--command-active
.str-chat__message-composer__additional-actions {
max-width: 0;
Expand Down