Specify customWidth instead of extraWidth for elements like custom emoji
- Dominant language
- TypeScript
- Stars
- 50.3k
- Forks
- 2.7k
- Avg merge
- 2h 40m
- Merged PRs (30d)
- 69
Description
We have a use case where we are replacing emojis with custom pixel based emoji `img` elements, which have a set width, and it would be nice to have the `RichInlineItem`s have an option to flow these naturally as well.
My current workaround is to use a placeholder symbol like □ and subtract its width manually through `extraWidth`, but that feels quite hacky.
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the RichInlineItem definition and the existing extraWidth handling, then trace how inline element widths affect flow. Add support for a customWidth option for fixed-width custom emoji img elements, and verify that these elements flow naturally without a placeholder symbol or manual width subtraction while preserving existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100