AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

[bug]: The render behavior for bold text is not correct

Open Zheaoli opened this issue 2 years ago • 2 comments

Describe the bug

No response

To Reproduce

  1. Input usual text like abc
  2. Enter a space char after the text
  3. You will find the space char seems like double width

Screenshots

https://user-images.githubusercontent.com/7054676/188265939-f3aae266-20a6-4e0b-8c5d-ffc90f815464.mov

Expected behavior

No response

Platform

No response

Browser

No response

Additional context

No response

Zheaoli avatar Sep 03 '22 10:09 Zheaoli

I can look into this bug. Please assign it to me if no one else is working on this already.

Pranav4399 avatar Sep 06 '22 06:09 Pranav4399

@Pranav4399 Great, you are welcome to work on this. We'd love to have your contribution.

lawvs avatar Sep 06 '22 09:09 lawvs

seems that slate contenteditable container unexpectedly kept the space char from keyboard event while react flush the correct data rendering the TextString Component ? image

mola-molaa avatar Oct 10 '22 11:10 mola-molaa