Repository navigation
fix(h5): preserve zero in media query descriptors - #19704
Jarvis636431 wants to merge 2 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. Walkthrough媒体查询生成逻辑现在会保留显式设为 Changes媒体查询尺寸零值
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19704 +/- ##
=======================================
Coverage 59.53% 59.53%
=======================================
Files 473 473
Lines 26652 26652
Branches 6710 6713 +3
=======================================
Hits 15868 15868
+ Misses 8993 8948 -45
- Partials 1791 1836 +45
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Closes #19703
这个 PR 做了什么?
maxWidth: 0 等条件被真值判断过滤,导致 matchMedia 收到空查询。
保留显式的数值 0,覆盖六个尺寸条件和新旧监听模式。
这个 PR 是什么类型?
这个 PR 涉及以下平台:
Summary by CodeRabbit
0的宽度和高度条件被忽略的问题,确保查询包含对应的 CSS 属性和值。验证结果
媒体查询定向 28 项测试通过,H5 全套 51 个套件、597 项测试通过。