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

@landeqiming666 landeqiming666 commented May 12, 2026

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


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


@landeqiming666 landeqiming666 mentioned this pull request May 12, 2026
@landeqiming666

Copy link
Copy Markdown
Author

Hi, just a gentle follow-up on this PR.

It is scoped to the linked responsive mode issue, includes the validation notes in the PR description, and is ready for maintainer review. Please let me know if you would prefer any changes to the implementation or tests.

Thanks!

@landeqiming666

Copy link
Copy Markdown
Author

Hi maintainers, gentle follow-up on this PR.

It remains mergeable, the Socket checks are green, and the change is scoped to the responsive mode behavior from the linked issue. The implementation and validation notes are in the PR description.

Please let me know if you would prefer a different API shape, docs wording, or test coverage before review. Thanks!

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