Skip to content

Commit 767d20c

Browse files
luixxiulJanBurp
authored andcommitted
Make the pill on the basic message composer compatible with display name in RTL languages (matrix-org#8758)
1 parent f3c176d commit 767d20c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

res/css/views/elements/_Pill.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ limitations under the License.
4848

4949
&::before,
5050
.mx_BaseAvatar {
51-
margin-left: -0.3em; // Otherwise the gap is too large
52-
margin-right: 0.2em;
51+
margin-inline-start: -0.3em; // Otherwise the gap is too large
52+
margin-inline-end: 0.2em;
5353
}
5454

5555
a& {

res/css/views/rooms/_BasicMessageComposer.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ limitations under the License.
5151
}
5252

5353
&.mx_BasicMessageComposer_input_shouldShowPillAvatar {
54-
span.mx_UserPill, span.mx_RoomPill, span.mx_SpacePill {
54+
span.mx_UserPill,
55+
span.mx_RoomPill,
56+
span.mx_SpacePill {
5557
user-select: all;
5658
position: relative;
5759
cursor: unset; // We don't want indicate clickability
@@ -66,7 +68,7 @@ limitations under the License.
6668
content: var(--avatar-letter);
6769
width: $font-16px;
6870
height: $font-16px;
69-
margin-right: 0.24rem;
71+
margin-inline-end: 0.24rem;
7072
background: var(--avatar-background), $background;
7173
color: $avatar-initial-color;
7274
background-repeat: no-repeat;

0 commit comments

Comments
 (0)