Skip to content

Commit 819e06e

Browse files
committed
MessageComposer styling for Draft
1 parent 7e563b8 commit 819e06e

File tree

2 files changed

+31
-10
lines changed

2 files changed

+31
-10
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.mx_UserPill {
2+
color: white;
3+
background-color: #76cfa6;
4+
padding: 2px 8px;
5+
border-radius: 16px;
6+
}
7+
8+
.mx_RoomPill {
9+
background-color: white;
10+
color: #76cfa6;
11+
border: 1px solid #76cfa6;
12+
padding: 2px 8px;
13+
border-radius: 16px;
14+
}

src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ limitations under the License.
2222
}
2323

2424
.mx_MessageComposer_row {
25-
display: table-row;
25+
display: flex;
26+
flex-direction: row;
27+
align-items: center;
2628
width: 100%;
2729
}
2830

2931
.mx_MessageComposer .mx_MessageComposer_avatar {
30-
display: table-cell;
32+
/*display: table-cell;*/
3133
padding-left: 10px;
3234
padding-right: 28px;
33-
vertical-align: middle;
3435
}
3536

3637
.mx_MessageComposer .mx_MessageComposer_avatar .mx_BaseAvatar {
@@ -42,20 +43,26 @@ limitations under the License.
4243
}
4344

4445
.mx_MessageComposer_noperm_error {
45-
display: table-cell;
46+
/*display: table-cell;*/
4647
width: 100%;
47-
vertical-align: middle;
4848
height: 60px;
4949
text-align: center;
5050
font-style: italic;
5151
color: #888;
5252
}
5353

5454
.mx_MessageComposer_input {
55-
display: table-cell;
56-
width: 100%;
55+
/*display: table-cell;*/
56+
flex: 1;
5757
vertical-align: middle;
58-
height: 60px;
58+
min-height: 60px;
59+
max-height: 120px;
60+
display: flex;
61+
align-items: center;
62+
}
63+
64+
.mx_MessageComposer_input .DraftEditor-root {
65+
flex: 1;
5966
}
6067

6168
.mx_MessageComposer_input textarea {
@@ -92,8 +99,8 @@ limitations under the License.
9299
.mx_MessageComposer_hangup,
93100
.mx_MessageComposer_voicecall,
94101
.mx_MessageComposer_videocall {
95-
display: table-cell;
96-
vertical-align: middle;
102+
/*display: table-cell;*/
103+
/*vertical-align: middle;*/
97104
padding-left: 10px;
98105
padding-right: 10px;
99106
cursor: pointer;

0 commit comments

Comments
 (0)