fix styling issues
- grow/shrink between min and max height correctly - don't grow wider than available space - some space between editor and buttons
This commit is contained in:
parent
fdf5fca628
commit
d4ca087abe
1 changed files with 9 additions and 1 deletions
|
@ -16,17 +16,22 @@ limitations under the License.
|
||||||
|
|
||||||
.mx_SendMessageComposer {
|
.mx_SendMessageComposer {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 50px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-right: 6px;
|
||||||
|
// don't grow wider than available space
|
||||||
|
min-width: 0;
|
||||||
|
|
||||||
.mx_BasicMessageComposer {
|
.mx_BasicMessageComposer {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
// min-height at this level so the mx_BasicMessageComposer_input
|
||||||
|
// still stays vertically centered when less than 50px
|
||||||
|
min-height: 50px;
|
||||||
|
|
||||||
.mx_BasicMessageComposer_input {
|
.mx_BasicMessageComposer_input {
|
||||||
padding: 3px 0;
|
padding: 3px 0;
|
||||||
|
@ -35,6 +40,9 @@ limitations under the License.
|
||||||
// while keeping the autocomplete at the top
|
// while keeping the autocomplete at the top
|
||||||
// of the composer. The parent needs to be a flex container for this to work.
|
// of the composer. The parent needs to be a flex container for this to work.
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
|
// max-height at this level so autocomplete doesn't get scrolled too
|
||||||
|
max-height: 140px;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue