Skip to content

Commit

Permalink
fix(chat): Change message text layout (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flemmli97 authored Feb 7, 2024
1 parent ba6b54d commit 93b5c6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/src/state/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub fn mention_to_did_key(id: &Identity) -> String {
// Replacement pattern converting a user tag to a highlight div
pub fn mention_replacement_pattern(id: &Identity, visual: bool) -> String {
format!(
r#"<div class="message-user-tag {}" value="{}">@{}</div>"#,
r#"<a class="message-user-tag {}" value="{}">@{}</a>"#,
if visual { "visual-only" } else { "" },
id.did_key(),
id.username()
Expand Down
4 changes: 2 additions & 2 deletions kit/src/components/message/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
}
.text {
color: var(--text-color-dark);
display: inline-flex;
flex-direction: column;
display: block;
white-space:pre-wrap;

.big-emoji {
Expand Down Expand Up @@ -140,6 +139,7 @@

.message-user-tag {
background-color: var(--text-color-user-tag);
color: var(--text-color-dark);
width: fit-content;
height: fit-content;
&:not(.visual-only) {
Expand Down

0 comments on commit 93b5c6c

Please sign in to comment.