Skip to content

[kumo-docs-astro] Prevent resource list demo overflow - #788

Merged
mattrothenberg merged 3 commits into
cloudflare:mainfrom
christian-chainalysis:fix/resource-list-demo-overflow
Sep 10, 2026
Merged

[kumo-docs-astro] Prevent resource list demo overflow#788
mattrothenberg merged 3 commits into
cloudflare:mainfrom
christian-chainalysis:fix/resource-list-demo-overflow

Conversation

@christian-chainalysis

Copy link
Copy Markdown
Contributor

Summary

  • Keep resource names within their cards at narrow desktop widths.
  • Make long code samples horizontally scrollable.

Videos

Resource names

vid1.mov

Code sample

vid2.mov

Testing

  • pnpm format:check
  • pnpm --filter @cloudflare/kumo-docs-astro lint
  • pnpm --filter @cloudflare/kumo-docs-astro typecheck
  • pnpm --filter @cloudflare/kumo-docs-astro build
  • Verified both overflow cases locally at the affected desktop widths.

  • Reviews
    • bonk has reviewed the change
    • automated review not possible because: I do not have access to Bonk.
  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows: Verified both overflow cases locally at the affected desktop widths.
    • Additional testing not necessary because:

@pkg-pr-new

pkg-pr-new Bot commented Sep 9, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/@cloudflare/kumo@788

commit: 0ba4941

@christian-chainalysis
christian-chainalysis force-pushed the fix/resource-list-demo-overflow branch from 2943887 to 6734227 Compare September 9, 2026 17:51
@github-actions

Copy link
Copy Markdown
Contributor

Docs Preview

View docs preview

Commit: 0ba4941

@github-actions

Copy link
Copy Markdown
Contributor

📐 Bundle Size

Consumer fixtures bundled against packages/kumo/dist (peers external, minified ESM).

Fixture Raw Gzip Brotli
Button (root) 174.6 KB 49.9 KB 43.1 KB
Button (components/button) 174.5 KB 49.9 KB 43.0 KB
Button + Dialog + Select (root) 299.5 KB 85.8 KB 71.8 KB
Button + Dialog + Select (component subpaths) 299.5 KB 85.9 KB 71.8 KB
Chart (root) 218.6 KB 63.4 KB 54.7 KB
Chart (components/chart) 218.5 KB 63.3 KB 54.7 KB
Badge (components/badge) 44.7 KB 11.7 KB 10.0 KB
Flow (components/flow) 208.9 KB 58.3 KB 50.5 KB
Button (primitives/button) 12.2 KB 4.4 KB 3.9 KB
Primitives barrel 635.7 KB 176.9 KB 139.3 KB
Code highlighting (code) 2.08 MB 467.9 KB 349.2 KB

npm tarball: 528 files, 1.45 MB packed, 6.78 MB unpacked.

⚠️ 22 flagged files in tarball (tests / raw scripts)
  • dist/blocks-source/resource-list/resource-list.test.tsx
  • scripts/component-registry/cache.ts
  • scripts/component-registry/discovery.ts
  • scripts/component-registry/example-cleanup.ts
  • scripts/component-registry/index.test.ts
  • scripts/component-registry/index.ts
  • scripts/component-registry/markdown-generator.ts
  • scripts/component-registry/metadata.ts
  • scripts/component-registry/props-filter.ts
  • scripts/component-registry/schema-generator.ts
  • scripts/component-registry/sub-components.ts
  • scripts/component-registry/types.ts
  • scripts/component-registry/utils.ts
  • scripts/component-registry/variant-parser.ts
  • scripts/css-build.ts
  • scripts/generate-primitives.ts
  • scripts/theme-generator/config.ts
  • scripts/theme-generator/generate-css.test.ts
  • scripts/theme-generator/generate-css.ts
  • scripts/theme-generator/index.ts
  • scripts/theme-generator/migrate.ts
  • scripts/theme-generator/types.ts

Report-only: no size thresholds are enforced yet.

Commit: 0ba49417

@mattrothenberg
mattrothenberg merged commit dcbf4cc into cloudflare:main Sep 10, 2026
14 checks passed
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.

2 participants