2019-08-06 17:03:44 +02:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2019-08-06 17:03:44 +02:00
|
|
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 15:57:16 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2019-08-06 17:03:44 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_SendMessageComposer {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2022-07-27 15:39:29 +02:00
|
|
|
/* fixed line height to prevent emoji from being taller than text */
|
2022-05-13 17:31:27 +02:00
|
|
|
line-height: $font-18px;
|
2019-08-07 14:06:44 +02:00
|
|
|
justify-content: center;
|
2019-08-07 14:51:49 +02:00
|
|
|
margin-right: 6px;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* don't grow wider than available space */
|
2019-08-07 14:51:49 +02:00
|
|
|
min-width: 0;
|
2019-08-06 17:03:44 +02:00
|
|
|
|
|
|
|
.mx_BasicMessageComposer {
|
2019-08-07 14:06:44 +02:00
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* min-height at this level so the mx_BasicMessageComposer_input */
|
|
|
|
/* still stays vertically centered when less than 55px. */
|
|
|
|
/* We also set this to ensure the voice message recording widget */
|
|
|
|
/* doesn't cause a jump. */
|
2022-06-27 10:43:58 +02:00
|
|
|
min-height: 55px;
|
2019-08-07 14:06:44 +02:00
|
|
|
|
2019-08-06 17:03:44 +02:00
|
|
|
.mx_BasicMessageComposer_input {
|
2022-06-27 10:43:58 +02:00
|
|
|
padding: 3px 0;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* this will center the contenteditable */
|
|
|
|
/* in it's parent vertically */
|
|
|
|
/* while keeping the autocomplete at the top */
|
|
|
|
/* of the composer. The parent needs to be a flex container for this to work. */
|
2019-09-03 10:27:45 +02:00
|
|
|
margin: auto 0;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* max-height at this level so autocomplete doesn't get scrolled too */
|
2019-08-07 14:51:49 +02:00
|
|
|
max-height: 140px;
|
|
|
|
overflow-y: auto;
|
2019-08-06 17:03:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|