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

Chat: update @-input token background #3548

Merged
merged 2 commits into from Mar 26, 2024
Merged

Chat: update @-input token background #3548

merged 2 commits into from Mar 26, 2024

Conversation

abeatrix
Copy link
Contributor

Address issue from #3501 (comment)

Remove .context-item-mention-node::before that sets background color with opacity, set background-color to rgba(200, 200, 200, 0.2); to add blurred background instead.

Test plan

Before

image

After

image

@toolmantim
Copy link
Contributor

I fixed the color background and added a border radius:

CleanShot.2024-03-26.at.21.11.13.mp4

I really wish we could add some padding, but every time I tried it didn't quite work. This PR also has the side effect of changing the cursor color when you're in a token — ideally we select the token when you click on it or move the cursor into it, similar to how https://github.com/sodenn/lexical-beautiful-mentions works.

I wonder if there's some code/tricks in lexical-beautiful-mentions we could use so we can render and interact with these more nicely?

@abeatrix abeatrix merged commit 5a5ebfe into main Mar 26, 2024
17 of 18 checks passed
@abeatrix abeatrix deleted the bee/update-at-bg branch March 26, 2024 15:14
valerybugakov pushed a commit that referenced this pull request Apr 22, 2024
Co-authored-by: Tim Lucas <t@toolmantim.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants