Skip to content

Commit

Permalink
Make the pill on the basic message composer compatible with display n…
Browse files Browse the repository at this point in the history
…ame in RTL languages (matrix-org#8758)
  • Loading branch information
luixxiul authored and JanBurp committed Jun 14, 2022
1 parent f3c176d commit 767d20c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions res/css/views/elements/_Pill.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ limitations under the License.

&::before,
.mx_BaseAvatar {
margin-left: -0.3em; // Otherwise the gap is too large
margin-right: 0.2em;
margin-inline-start: -0.3em; // Otherwise the gap is too large
margin-inline-end: 0.2em;
}

a& {
Expand Down
6 changes: 4 additions & 2 deletions res/css/views/rooms/_BasicMessageComposer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ limitations under the License.
}

&.mx_BasicMessageComposer_input_shouldShowPillAvatar {
span.mx_UserPill, span.mx_RoomPill, span.mx_SpacePill {
span.mx_UserPill,
span.mx_RoomPill,
span.mx_SpacePill {
user-select: all;
position: relative;
cursor: unset; // We don't want indicate clickability
Expand All @@ -66,7 +68,7 @@ limitations under the License.
content: var(--avatar-letter);
width: $font-16px;
height: $font-16px;
margin-right: 0.24rem;
margin-inline-end: 0.24rem;
background: var(--avatar-background), $background;
color: $avatar-initial-color;
background-repeat: no-repeat;
Expand Down

0 comments on commit 767d20c

Please sign in to comment.