Repository navigation
fix(Image): use RTL icons in PreviewGroup - #59145
Conversation
|
|
👁 Visual Regression Report for PR #59145 Passed ✅
🎊 Congrats! No visual-regression diff found.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughSummary by CodeRabbit
WalkthroughChangesRTL 预览图标
Estimated code review effort: 1 (简单) | ~5 分钟 Merge Risk: ⚪ Minimal · up to This localized change corrects navigation icons for right-to-left image previews without affecting data, permissions, integrations, or deployment behavior; no actionable merge-blocking risk remains after normal checks and review. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Bundle ReportChanges will decrease total bundle size by 2 bytes (-0.0%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
More templates
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #59145 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 834 834
Lines 15995 15995
Branches 4205 4205
=========================================
Hits 15995 15995 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|


🤔 这个变动的性质是?
🔗 相关 Issue
N/A
💡 需求背景和解决方案
在

ConfigProvider direction="rtl"下,Image.PreviewGroup的预览切换按钮仍使用 LTR 方向图标,导致按钮位置与箭头方向表达不一致。修复预览配置,使其使用根据当前

direction计算得到的 RTL 图标,确保预览配置与组件实际传入的图标保持一致。(实测 X 平台使用 RTL 语言,查看多张图片时,左边按钮是←箭头,功能是“下一张”,右边按钮是右箭头,功能是“上一张”)。
📝 更新日志