Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Make the pill on the basic message composer compatible with display name in RTL languages #8758

Merged
merged 1 commit into from
Jun 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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