Skip to content

fix: prevent vertical alignment of star icons#63

Open
smmileely wants to merge 1 commit into
awran5:mainfrom
smmileely:smmileely/run-local
Open

fix: prevent vertical alignment of star icons#63
smmileely wants to merge 1 commit into
awran5:mainfrom
smmileely:smmileely/run-local

Conversation

@smmileely

Copy link
Copy Markdown

Summary

  • Fixes stars rendering vertically instead of horizontally when the consuming app has CSS resets that set svg { display: block } (e.g. Tailwind CSS)
  • Adds inline display: inline-block style to the SVG element in StarIcon, ensuring correct horizontal layout regardless of external styles
  • User-provided SVGstyle can still override this default via the spread operator

Fixes #61

Add inline `display: inline-block` style to SVG elements so stars
render horizontally regardless of external CSS resets (e.g. Tailwind).

Fixes awran5#61

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vertical Alignment of star icons

1 participant