ijry / ijry/uview-plus

NoticeBar横向滚动,当文本中有空格时空格会不显示

Open Beginner friendly
#545 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
717
Forks
205
Avg merge
21h 38m
Merged PRs (30d)
2

Description

image
如果正好在21个字符的位置是个空格,因为会按20个字符切分为多个text,导致空格出现在开头,进而不显示这个空格,需要将此样式改为white-space: pre

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.