Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve mention visibility by adding a background color #7014

Merged

Conversation

RemcoSmitsDev
Copy link
Contributor

When the chat if going fast, It's hard to see who is mentioning you, so this feature will make it more clear by the UI instead of needing to read all the messages.

Screenshot 2024-01-29 at 21 19 07

Release Notes:

  • Added background to messages that mention you.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 29, 2024
@RemcoSmitsDev RemcoSmitsDev changed the title Improve mention visibility by adding background color Improve mention visibility by adding a background color Jan 29, 2024
Copy link
Collaborator

@maxbrunsfeld maxbrunsfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great improvement. Thanks for including the screenshot. I left one small code suggestion, and a design question.

Fill::default()
})
.p_1()
.rounded_md()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious - how does this look when two consecutive message both mention you?

Copy link
Contributor Author

@RemcoSmitsDev RemcoSmitsDev Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested that one. We might want a little bit more margin in this case.
Screenshot 2024-01-29 at 22 33 52

When there is a message in between, it looks nice:
Screenshot 2024-01-29 at 22 33 05

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it locally to this. But one note, this brings a little inconsistency with spacing between messages that do/not have a mention inside the message. It's not much, but I'm not sure if this is a problem.
Screenshot 2024-01-29 at 22 39 46

Copy link
Contributor Author

@RemcoSmitsDev RemcoSmitsDev Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the inconsistent spacing issue in my latest commit.

@maxbrunsfeld maxbrunsfeld merged commit 30b9cef into zed-industries:main Jan 30, 2024
5 checks passed
@maxbrunsfeld
Copy link
Collaborator

Thanks @RemcoSmitsDev; this will ship in Zed 0.121.

@RemcoSmitsDev RemcoSmitsDev deleted the improve-mention-visibility branch March 14, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants