NoticeBar横向滚动,当文本中有空格时空格会不显示
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 717
- Forks
- 205
- Avg merge
- 21h 38m
- Merged PRs (30d)
- 2
Description
如果正好在21个字符的位置是个空格,因为会按20个字符切分为多个text,导致空格出现在开头,进而不显示这个空格,需要将此样式改为white-space: pre
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the NoticeBar component and the code that splits text into 20-character segments. Reproduce the issue with a space at the 21st character, then inspect the relevant text style. Done means spaces remain visible while the text scrolls horizontally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 75/100