Skip to content

refactor(Masonry): 🛠 use genCssVar hook to generate CSS variables#56547

Merged
li-jia-nan merged 1 commit intomasterfrom
genCssVar-masonry
Jan 9, 2026
Merged

refactor(Masonry): 🛠 use genCssVar hook to generate CSS variables#56547
li-jia-nan merged 1 commit intomasterfrom
genCssVar-masonry

Conversation

@li-jia-nan
Copy link
Member

中文版模板 / Chinese template

🤔 This is a ...

  • 🆕 New feature
  • 🐞 Bug fix
  • 📝 Site / documentation improvement
  • 📽️ Demo improvement
  • 💄 Component style improvement
  • 🤖 TypeScript definition improvement
  • 📦 Bundle size optimization
  • ⚡️ Performance optimization
  • ⭐️ Feature enhancement
  • 🌐 Internationalization
  • 🛠 Refactoring
  • 🎨 Code style optimization
  • ✅ Test Case
  • 🔀 Branch merge
  • ⏩ Workflow
  • ⌨️ Accessibility improvement
  • ❓ Other (about what?)

🔗 Related Issues

  • Describe the source of related requirements, such as links to relevant issue discussions.
  • For example: close #xxxx, fix #xxxx

💡 Background and Solution

  • The specific problem to be addressed.
  • List the final API implementation and usage if needed.
  • If there are UI/interaction changes, consider providing screenshots or GIFs.

📝 Change Log

Language Changelog
🇺🇸 English refactor(Masonry): 🛠 use genCssVar hook to generate CSS variables
🇨🇳 Chinese refactor(Masonry): 🛠 use genCssVar hook to generate CSS variables

Copilot AI review requested due to automatic review settings January 9, 2026 14:34
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

👁 Visual Regression Report for PR #56547 Failed ❌

🎯 Target branch: master (75ddcdf)
📖 View Full Report ↗︎
📖 Alternative Report ↗︎
📊 Summary: 🔄 2 changed

Expected (Branch master) Actual (Current PR) Diff
list-vertical.dark.png list-vertical.dark.png list-vertical.dark.png list-vertical.dark.png
table-sticky.default.png table-sticky.default.png table-sticky.default.png table-sticky.default.png

Important

There are 2 diffs found in this PR: 🔄 2 changed.
Please check all items:

  • Visual diff is acceptable

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 9, 2026

📝 Walkthrough

Summary by CodeRabbit

版本发布说明

  • 优化
    • 改进了砌体组件的动态样式系统,支持更灵活的主题配置。
    • 增强了组件样式变量的可定制性,使布局和间距更易于自定义。

✏️ Tip: You can customize this high-level summary in your review settings.

总体说明

此拉取请求实现了砌体组件的动态CSS变量处理机制,用genCssVar和getPrefixCls替代硬编码的CSS变量名,以支持主题化的样式计算。涉及组件逻辑和对应测试的更新。

变更内容

内聚群 / 文件 变更摘要
砌体组件核心逻辑
components/masonry/Masonry.tsx
引入genCssVar和getPrefixCls生成动态CSS变量名称。将硬编码的--item-width变量替换为varName()和varRef()的动态计算结果,应用于项目宽度和内联位置的样式计算。
砌体组件单元测试
components/masonry/__tests__/index.test.tsx
更新测试中的CSS变量读取逻辑,使用genCssVar(defaultPrefixCls, 'masonry')生成变量名,替代直接访问固定CSS变量。添加可选链操作符以安全读取水平和竖直沟槽值。

估计代码审查工作量

🎯 2 (简单) | ⏱️ ~12 分钟

诗句

🐰 跳跳跳,变量舞动起,
CSS不再硬如石,
主题色彩灵动飞,
砌体焕发新活力,
动态之美在此地!✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed PR标题清晰准确地反映了主要变更,即使用genCssVar钩子来生成CSS变量,这与代码更改的核心内容相符。
Description check ✅ Passed PR描述虽然内容较少且主要是模板,但所有内容都与重构Masonry组件以使用genCssVar相关,符合检查要求。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch genCssVar-masonry

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @li-jia-nan, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a refactoring effort within the Masonry component to adopt a more standardized approach for managing CSS variables. By integrating the genCssVar hook, the component now generates CSS custom properties with a consistent prefix, improving maintainability and theme compatibility. This change primarily involves updating how CSS variables are declared and referenced in the component's inline styles and is supported by corresponding updates to the test suite.

Highlights

  • Standardized CSS Variable Generation: The Masonry component now utilizes the genCssVar hook to generate CSS variables, ensuring consistent naming conventions and better integration with the Ant Design theme system.
  • CSS Variable Naming Update: The custom CSS property --item-width has been updated to --ant-masonry-item-width to follow the new standardized naming scheme.
  • Test Suite Alignment: Snapshot tests and test utilities have been updated to reflect the changes in CSS variable naming and generation, ensuring continued correctness.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

Preview is ready

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the Masonry component to use the genCssVar hook for generating CSS variable names, replacing the hardcoded --item-width variable with the properly prefixed --ant-masonry-item-width variable. This aligns the Masonry component with Ant Design's CSS variable naming conventions.

Key Changes:

  • Adopted genCssVar hook to generate consistent CSS variable names and references
  • Updated CSS variable from --item-width to --ant-masonry-item-width
  • Modified tests to use the new variable naming pattern

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
components/masonry/Masonry.tsx Added genCssVar hook import and implementation; replaced hardcoded CSS variable names with generated ones using varName and varRef functions
components/masonry/tests/index.test.tsx Updated test to use genCssVar hook for retrieving the correct CSS variable name; added optional chaining for safer null handling
components/masonry/tests/snapshots/demo-extend.test.ts.snap Updated all snapshot occurrences of CSS variable from --item-width to --ant-masonry-item-width

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the Masonry component to use the genCssVar hook for generating CSS variables, which is a great improvement for consistency and avoiding potential CSS variable name conflicts across the application. The changes in the component and the updated snapshots look correct. I have one minor suggestion in a test file to make test failures more explicit and easier to debug.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

size-limit report 📦

Path Size
dist/antd.min.js 523.11 KB (+18 B 🔺)
dist/antd-with-locales.min.js 616.95 KB (+13 B 🔺)

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 9, 2026

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
components/masonry/__tests__/index.test.tsx (1)

203-210: 避免对 match() 结果使用非空断言,提升失败时可诊断性

Line 206-210:horizontalGutter! / verticalGutter! 在解析失败时会抛出不直观的异常(或产出 NaN),建议显式断言并给出更清晰的错误。

建议修改(更清晰的断言与报错)
 const getGutter = () => {
   const itemElements = document.body.querySelectorAll<HTMLElement>('.ant-masonry-item');
-  const horizontalGutter = itemElements[0].style
+  const horizontalGutter = itemElements[0].style
     .getPropertyValue(varName('item-width'))
     .match(/\d+px/)?.[0];
-  const verticalGutter = itemElements[2].style.top.match(/\d+px/)?.[0];
-  return [Number.parseInt(horizontalGutter!, 10), Number.parseInt(verticalGutter!, 10)];
+  const verticalGutter = itemElements[2].style.top.match(/\d+px/)?.[0];
+
+  if (!horizontalGutter || !verticalGutter) {
+    throw new Error(
+      `Failed to parse gutter. horizontal=${String(horizontalGutter)} vertical=${String(verticalGutter)}`,
+    );
+  }
+
+  return [Number.parseInt(horizontalGutter, 10), Number.parseInt(verticalGutter, 10)];
 };
components/masonry/Masonry.tsx (1)

265-267: CSS 变量替换到 varName/varRef 一致性 OK;可选地把 itemWidth 计算提到外层避免每个 item 重复拼接

Line 265-267:用 [varName('item-width')] + varRef('item-width') 替代硬编码/手写 var(...) 是一致且更可维护的做法。
可选优化:calc((100% + ${horizontalGutter}px) / ${columnCount}) 对所有 item 相同,可以在外层预先计算(或 memo)再复用,减少 render 时每个 item 的字符串拼接开销。

📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 75ddcdf and b07fa22.

⛔ Files ignored due to path filters (1)
  • components/masonry/__tests__/__snapshots__/demo-extend.test.ts.snap is excluded by !**/*.snap
📒 Files selected for processing (2)
  • components/masonry/Masonry.tsx
  • components/masonry/__tests__/index.test.tsx
🧰 Additional context used
📓 Path-based instructions (8)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

**/*.{ts,tsx}: Always use TypeScript with strict type checking
Never use any type - define precise types instead
Use interfaces (not type aliases) for object structures
Export all public interface types
Prefer union types over enums, use as const for constants
Use early returns to improve readability
Support tree shaking
Follow import order: React → dependencies → antd components → custom components → types → styles
Prefer antd built-in components over external dependencies
Pass all ESLint and TypeScript checks
No console errors or warnings

**/*.{ts,tsx}: Use TypeScript and React to develop, with function-based components and hooks instead of class components
Use early returns to improve code readability
Component names should use PascalCase
Property names should use camelCase
Use React.memo, useMemo, and useCallback appropriately to optimize performance
All components and functions must provide accurate type definitions; avoid using any type and use interfaces instead of type aliases for object structures
Component props should use interface definition with naming convention ComponentNameProps; define separate interfaces for component state like ComponentNameState
Use React.ForwardRefRenderFunction for component ref types and explicitly define all callback function parameters and return values
Use generics appropriately to enhance type flexibility; use union types and as const instead of enum; rely on TypeScript's type inference and minimize type assertions
Internationalization: obtain locale configuration via useLocale hook from components/locale/index.tsx; ensure new locale configurations have corresponding type definitions

Files:

  • components/masonry/__tests__/index.test.tsx
  • components/masonry/Masonry.tsx
components/**/*.tsx

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

components/**/*.tsx: Component props interfaces should be named ComponentNameProps
Component ref types should use React.ForwardRefRenderFunction
Use functional components with hooks exclusively (no class components)
Apply performance optimizations with React.memo, useMemo, useCallback appropriately
Support server-side rendering
Components must support ref forwarding with structure including nativeElement, focus, and other methods
Use PascalCase for component names
Use camelCase for props with specific patterns: default + PropName for defaults, forceRender for force rendering, open instead of visible for panel state, show + PropName for display toggles, PropName + able for capabilities, dataSource for data source, disabled for disabled state, extra for additional content, icon for icons, trigger for triggers, className for CSS classes
Use on + EventName pattern for event handlers (e.g., onClick, onChange)
Use on + SubComponentName + EventName pattern for sub-component events
Use complete names, never abbreviations in prop naming
Optimize for minimal re-renders
Use useLocale hook from components/locale/index.tsx
Support accessibility (WCAG 2.1 AA)

Files:

  • components/masonry/__tests__/index.test.tsx
  • components/masonry/Masonry.tsx
components/**/*.{ts,tsx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Never hardcode colors, sizes, or spacing values

Files:

  • components/masonry/__tests__/index.test.tsx
  • components/masonry/Masonry.tsx
**/__tests__/**/*.test.{ts,tsx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

**/__tests__/**/*.test.{ts,tsx}: Write comprehensive tests using Jest and React Testing Library
Include snapshot tests for UI components

Files:

  • components/masonry/__tests__/index.test.tsx
**/*.{ts,tsx,md}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Use 2-space indentation

Files:

  • components/masonry/__tests__/index.test.tsx
  • components/masonry/Masonry.tsx
**/*.{ts,tsx,css}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Maintain cross-browser compatibility

Files:

  • components/masonry/__tests__/index.test.tsx
  • components/masonry/Masonry.tsx
**/*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

**/*.tsx: Use @ant-design/cssinjs as the styling solution; place component styles in style/ directory with filenames following gen[ComponentName]Style naming convention
Use CSS-in-JS and avoid hardcoded colors, sizes, and spacing values; base component styles on global and component-level design tokens
Components must support dark mode, different screen sizes, and RTL (right-to-left) reading direction; use CSS logical properties like margin-inline-start instead of directional properties
Use CSS transitions for simple animations and @rc-component/motion for complex animations; respect prefers-reduced-motion user preference
Follow WCAG 2.1 AA accessibility standards: ensure clear focus states, sufficient color contrast, avoid color-only information conveyance, support 200% page zoom, and avoid flickering animations

Files:

  • components/masonry/__tests__/index.test.tsx
  • components/masonry/Masonry.tsx
**/*.test.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Use Jest and React Testing Library for unit tests; place test files in tests directory with naming format index.test.tsx or xxx.test.tsx; achieve 100% test coverage

Files:

  • components/masonry/__tests__/index.test.tsx
🧠 Learnings (9)
📚 Learning: 2025-11-24T16:30:28.374Z
Learnt from: CR
Repo: ant-design/ant-design PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T16:30:28.374Z
Learning: Applies to components/**/*.{ts,tsx} : Never hardcode colors, sizes, or spacing values

Applied to files:

  • components/masonry/__tests__/index.test.tsx
  • components/masonry/Masonry.tsx
📚 Learning: 2025-11-24T16:30:28.374Z
Learnt from: CR
Repo: ant-design/ant-design PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T16:30:28.374Z
Learning: Applies to **/*.{ts,tsx,css} : Maintain cross-browser compatibility

Applied to files:

  • components/masonry/__tests__/index.test.tsx
📚 Learning: 2026-01-04T15:16:45.886Z
Learnt from: CR
Repo: ant-design/ant-design PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-04T15:16:45.886Z
Learning: Applies to **/*.tsx : Use CSS-in-JS and avoid hardcoded colors, sizes, and spacing values; base component styles on global and component-level design tokens

Applied to files:

  • components/masonry/__tests__/index.test.tsx
  • components/masonry/Masonry.tsx
📚 Learning: 2025-11-24T16:30:28.374Z
Learnt from: CR
Repo: ant-design/ant-design PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T16:30:28.374Z
Learning: Applies to components/**/style/*.ts : Use CSS logical properties for RTL support (e.g., `margin-inline-start` instead of `margin-left`)

Applied to files:

  • components/masonry/__tests__/index.test.tsx
  • components/masonry/Masonry.tsx
📚 Learning: 2025-11-24T16:30:28.374Z
Learnt from: CR
Repo: ant-design/ant-design PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T16:30:28.374Z
Learning: Applies to **/__tests__/**/*.test.{ts,tsx} : Include snapshot tests for UI components

Applied to files:

  • components/masonry/__tests__/index.test.tsx
📚 Learning: 2025-11-24T16:30:28.374Z
Learnt from: CR
Repo: ant-design/ant-design PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T16:30:28.374Z
Learning: Applies to **/__tests__/**/*.test.{ts,tsx} : Write comprehensive tests using Jest and React Testing Library

Applied to files:

  • components/masonry/__tests__/index.test.tsx
📚 Learning: 2025-11-24T16:30:28.374Z
Learnt from: CR
Repo: ant-design/ant-design PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T16:30:28.374Z
Learning: Applies to components/**/style/*.ts : Generate styles with functions named `gen[ComponentName]Style`

Applied to files:

  • components/masonry/__tests__/index.test.tsx
📚 Learning: 2025-11-24T16:30:28.374Z
Learnt from: CR
Repo: ant-design/ant-design PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T16:30:28.374Z
Learning: Applies to components/**/style/*.ts : Use `ant-design/cssinjs` for all styling

Applied to files:

  • components/masonry/__tests__/index.test.tsx
  • components/masonry/Masonry.tsx
📚 Learning: 2025-11-13T02:52:08.942Z
Learnt from: meet-student
Repo: ant-design/ant-design PR: 55697
File: components/drawer/index.tsx:86-88
Timestamp: 2025-11-13T02:52:08.942Z
Learning: In Ant Design components (components/**/*.{ts,tsx}), always use `import useId from 'rc-util/lib/hooks/useId'` instead of `React.useId()` for generating unique IDs, to ensure compatibility with React 16-19. The rc-util hook automatically uses the native implementation in React 18+ and provides a fallback for older versions.

Applied to files:

  • components/masonry/Masonry.tsx
🧬 Code graph analysis (1)
components/masonry/Masonry.tsx (1)
components/theme/util/genStyleUtils.ts (1)
  • genCssVar (48-57)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (19)
  • GitHub Check: Agent
  • GitHub Check: CodeQL analysis (javascript-typescript)
  • GitHub Check: visual-diff snapshot (2/2)
  • GitHub Check: build preview
  • GitHub Check: visual-diff snapshot (1/2)
  • GitHub Check: test lib/es module (es, 1/2)
  • GitHub Check: test lib/es module (es, 2/2)
  • GitHub Check: test-node
  • GitHub Check: test lib/es module (lib, 2/2)
  • GitHub Check: test-react-legacy (18, 2/2)
  • GitHub Check: test-react-legacy (18, 1/2)
  • GitHub Check: test-react-latest (dom, 2/2)
  • GitHub Check: build
  • GitHub Check: test-react-latest (dom, 1/2)
  • GitHub Check: lint
  • GitHub Check: size
  • GitHub Check: build
  • GitHub Check: Analyze (javascript)
  • GitHub Check: build
🔇 Additional comments (3)
components/masonry/__tests__/index.test.tsx (1)

7-8: 使用 genCssVar/defaultPrefixCls 替代硬编码 CSS 变量名是正确方向

Line 7-8:测试侧用 genCssVar(defaultPrefixCls, 'masonry') 来推导变量名,能避免变量名前缀变更导致测试脆弱,和本次重构目标一致。
如果后续要覆盖“自定义 ConfigProvider prefixCls”的场景,这里可能需要从渲染上下文而非 defaultPrefixCls 推导(否则测试只验证默认前缀路径)。

components/masonry/Masonry.tsx (2)

96-100: rootPrefixCls + genCssVar 的引入合理,可随全局前缀变化而稳定生成变量名

Line 96-100:用 getPrefixCls() 拿到根前缀再 genCssVar(rootPrefixCls, 'masonry'),能让 CSS 变量命名跟随 ConfigProvider 的全局前缀配置(避免把组件级 prefixCls 误当作 CSS 变量前缀)。


238-238: 确认是否允许外部 style.height 覆盖内部计算的 totalHeight

Line 238:当前合并顺序是 height: totalHeight 在最前,随后 ...style 可能覆盖高度;如果 Masonry 期望“始终用内部计算高度”,建议把 height 放到最后。

可选修改(让 totalHeight 始终生效)
-        style={{ height: totalHeight, ...mergedStyles.root, ...contextStyle, ...style }}
+        style={{ ...mergedStyles.root, ...contextStyle, ...style, height: totalHeight }}

@cloudflare-workers-and-pages
Copy link

Deploying ant-design with  Cloudflare Pages  Cloudflare Pages

Latest commit: b07fa22
Status: ✅  Deploy successful!
Preview URL: https://9909167f.ant-design.pages.dev
Branch Preview URL: https://gencssvar-masonry.ant-design.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

Deploying ant-design-next with  Cloudflare Pages  Cloudflare Pages

Latest commit: b07fa22
Status: ✅  Deploy successful!
Preview URL: https://dccaa467.ant-design-next.pages.dev
Branch Preview URL: https://gencssvar-masonry.ant-design-next.pages.dev

View logs

@codecov
Copy link

codecov bot commented Jan 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (75ddcdf) to head (b07fa22).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #56547   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          805       805           
  Lines        14862     14864    +2     
  Branches      3919      3919           
=========================================
+ Hits         14862     14864    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 9, 2026
@li-jia-nan li-jia-nan merged commit 584923d into master Jan 9, 2026
55 checks passed
@li-jia-nan li-jia-nan deleted the genCssVar-masonry branch January 9, 2026 14:46
@codecov
Copy link

codecov bot commented Jan 9, 2026

Bundle Report

Changes will increase total bundle size by 78 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
antd.min-array-push 3.86MB 78 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: antd.min-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
antd-with-locales.min.js 39 bytes 2.12MB 0.0%
antd.min.js 39 bytes 1.74MB 0.0%

@zombieJ zombieJ mentioned this pull request Jan 13, 2026
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants