reflex icon indicating copy to clipboard operation
reflex copied to clipboard

`Avatar` shows '\', is there escape character support issue?

Open forhonourlx opened this issue 3 years ago β€’ 1 comments

Describe the bug I am trying to create an Avatar with prop name of β€œη™»ε½•β€, which is a non-English string. Avatar shows \(support issues of utf-8 escape character)? And is there any way to control the display length on Avatar? Thanks inadvance.

To Reproduce Steps to reproduce the behavior:

                pc.menu_button(
                    pc.cond(
                        cond = GlobeState.logged_in,
                        comp1 = pc.avatar(name=GlobeState.username,size="md"),
                        comp2 = pc.avatar(size="md", name="登录"),
                    )
                ),

Screenshots If applicable, add screenshots to help explain your problem.

Avatar

** Specifics (please complete the following information):**

  • Python Version: 3.10
  • Pynecone Version: 0.1.11
  • OS: WSL2
  • Browser (Optional): EDGE

forhonourlx avatar Jan 04 '23 18:01 forhonourlx

Ah ok I'll see if chakra supports this we use them for this component. Thanks for pointing this out

Alek99 avatar Jan 05 '23 05:01 Alek99

I think this should be fixed now. Reopen if not, thanks.

Alek99 avatar Feb 01 '23 06:02 Alek99