minor fixes to display logic #9
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the
react-7-segment-display
package with improvements to its fallback logic, display behavior, and project metadata. The most notable change is the switch of the default fallback character from-
to0
, which affects how invalid or missing characters are rendered. Additionally, the visual appearance of inactive segments has been adjusted, and repository metadata has been updated to reflect a new maintainer.Display logic improvements:
-
to0
inDigit.tsx
, so when an invalid or missing character is provided, the display will now show a zero instead of a dash. Added a warning log if the fallback is used, and improved error handling for invalid segment data. [1] [2]Visual appearance adjustments:
Segment.tsx
to use lower opacity and reduced grayscale, making inactive segments less prominent.Project metadata updates:
package.json
to point to the new maintainer (kvjoshi
). [1] [2]1.1.5
to1.1.6
inpackage.json
.build
script by removing an unnecessary space.