Skip to content

Commit 0e71ea7

Browse files
author
Luke Barnard
committed
Make some adjustments to mx_UserPill and mx_RoomPill
So that they can appear correctly in the body of a text message.
1 parent cb4f57e commit 0e71ea7

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/elements/_RichText.scss‎

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,34 @@
22
// naming scheme; it's completely unclear where or how they're being used
33
// --Matthew
44

5-
.mx_UserPill {
6-
color: $accent-fg-color;
7-
background-color: $accent-color;
8-
padding: 1px 5px 0px 2px;
5+
.mx_UserPill,
6+
.mx_RoomPill {
7+
padding: 0px 5px 0px 2px;
98
border-radius: 16px;
9+
display: inline-block;
10+
height: 20px;
11+
line-height: 20px;
1012
}
1113

12-
.mx_UserPill img, .mx_RoomPill img {
13-
vertical-align: -2px;
14-
margin-right: 1px
14+
/* More specific to override `.markdown-body a` color */
15+
.mx_EventTile_content .markdown-body a.mx_UserPill,
16+
.mx_UserPill {
17+
color: $accent-fg-color;
18+
background-color: $accent-color;
1519
}
1620

21+
/* More specific to override `.markdown-body a` color */
22+
.mx_EventTile_content .markdown-body a.mx_RoomPill,
1723
.mx_RoomPill {
1824
background-color: $rte-room-pill-color;
1925
color: $accent-fg-color;
20-
padding: 1px 5px 0px 2px;
21-
border-radius: 16px;
26+
}
27+
28+
.mx_UserPill .mx_BaseAvatar,
29+
.mx_RoomPill .mx_BaseAvatar {
30+
position: relative;
31+
top: 2px;
32+
margin-right: 1px;
2233
}
2334

2435
.mx_Markdown_BOLD {

0 commit comments

Comments
 (0)