Skip to content

Commit 274fc34

Browse files
author
Luke Barnard
committed
Adjust CSS for optional avatars in pills
codep matrix-org/matrix-react-sdk#1277
1 parent 9f3c337 commit 274fc34

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/avatars/_BaseAvatar.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ limitations under the License.
2020

2121
.mx_BaseAvatar_initial {
2222
position: absolute;
23+
left: 0px;
2324
color: $avatar-initial-color;
2425
text-align: center;
2526
speak: none;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
display: inline-block;
99
height: 20px;
1010
line-height: 20px;
11+
padding-left: 5px;
1112
}
1213

1314
/* More specific to override `.markdown-body a` color */
@@ -35,9 +36,8 @@
3536
.mx_UserPill .mx_BaseAvatar,
3637
.mx_RoomPill .mx_BaseAvatar {
3738
position: relative;
39+
left: -3px;
3840
top: 2px;
39-
margin-left: 2px;
40-
margin-right: 2px;
4141
}
4242

4343
.mx_Markdown_BOLD {

0 commit comments

Comments
 (0)