Skip to content

Add responsive content loader mode#428

Open
landeqiming666 wants to merge 1 commit into
egoist:masterfrom
landeqiming666:codex/issuehunt-18-responsive-loader
Open

Add responsive content loader mode#428
landeqiming666 wants to merge 1 commit into
egoist:masterfrom
landeqiming666:codex/issuehunt-18-responsive-loader

Conversation

@landeqiming666
Copy link
Copy Markdown

Summary

  • add a responsive prop for ContentLoader
  • render responsive loaders with width="100%" and height="auto" while keeping the drawing ratio from viewBox
  • document the responsive usage and cover it with a unit test

This is a smaller alternative for #18 than the older conflicting PR #60: it avoids breakpoint parsing, dependency churn, lockfile changes, and keeps the existing fixed-size behavior unchanged by default.

Test plan

  • npm test -- --runInBand
  • npm run build

Closes #18

@landeqiming666 landeqiming666 mentioned this pull request May 12, 2026
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.

Responsive

1 participant