Skip to content

Conversation

@zcSkr
Copy link

@zcSkr zcSkr commented Feb 2, 2026

优化ProFormDigitRange宽度默认占满
ScreenShot_2026-01-30_175600_248

Summary by CodeRabbit

更新说明

  • 样式改进
    • 数字范围字段编辑界面现在以全宽方式显示。

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

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 2, 2026
@dosubot
Copy link

dosubot bot commented Feb 2, 2026

Related Documentation

No published documentation to review for changes on this repository.

Write your first living document

How did I do? Any feedback?  Join Discord

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @zcSkr, 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!

此拉取请求旨在优化 ProFormDigitRange 组件的宽度行为,使其能够自动适应并占满其父容器的可用宽度。这一改进提升了组件的布局一致性和视觉效果,特别是在响应式设计中,无需手动调整即可提供更整洁的用户界面。

Highlights

  • ProFormDigitRange 宽度优化: 通过为 Space.Compact 组件添加 block 属性,使 ProFormDigitRange 组件的宽度默认占满其父元素的可用空间。

🧠 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.

@coderabbitai
Copy link

coderabbitai bot commented Feb 2, 2026

📝 Walkthrough

概览

在DigitRange字段组件的编辑UI中,向Space.Compact元素添加了block属性,使紧凑容器以块级元素(全宽)的形式渲染。事件处理和渲染流程保持不变。

变更

Cohort / File(s) 摘要
样式和布局调整
src/field/components/DigitRange/index.tsx
为Space.Compact添加block属性,使容器以块级元素形式渲染,实现全宽布局。

代码审查工作量估算

🎯 1 (Trivial) | ⏱️ ~2 minutes

诗歌

一个小小的属性加入,
布局展开显得更宽阔,
Space.Compact现已成长,
block的魔法让它充满力量! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR标题清晰描述了主要改动:通过添加block属性使ProFormDigitRange宽度调整为父元素宽度,与changeset中DigitRange组件的Space.Compact样式调整完全相符。
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

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.

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

这个 Pull Request 的目标是优化 ProFormDigitRange 组件的宽度,使其默认占满父元素的宽度。通过为 Space.Compact 组件添加 block 属性,这个改动正确地实现了目标。这使得内部的 InputNumber 组件可以利用 width: calc(...) 样式来平分剩余空间,从而解决了之前可能存在的布局问题。代码改动简洁且有效,我没有发现任何问题。

@dosubot dosubot bot added the 🧱 antd label Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧱 antd size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant