blob: b9119a714d9aa66cc244ace15e100d43c6fc64cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// ------------------------------------------------------------------
// Layout
// ------------------------------------------------------------------
.o_ComposerTextInput {
min-width: 0;
position: relative;
}
.o_ComposerTextInput_mirroredTextarea {
height: 0;
position: absolute;
opacity: 0;
overflow: hidden;
top: -10000px;
}
.o_ComposerTextInput_textareaStyle {
padding: 10px;
resize: none;
border-radius: $o-mail-rounded-rectangle-border-radius-lg;
border: none;
overflow: auto;
&.o-composer-is-compact {
// When composer is compact, textarea should not be rounded on the right as
// buttons are glued to it
border-top-right-radius: 0;
border-bottom-right-radius: 0;
// Chat window height should be taken into account to choose this value
// ideally this should be less than the third of chat window height
max-height: 100px;
}
&:not(.o-composer-is-compact) {
// Don't allow the input to take the whole height when it's not compact
// (like in chatter for example) but allow it to take some more place
max-height: 400px;
}
}
|