Closed Alex-huxiyang closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 82.98%. Comparing base (
3ccc3ef
) to head (149ec47
). Report is 2 commits behind head on next.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
本次变更涉及导航栏组件的SCSS文件和TypeScript文件。SCSS文件中删除了.nut-navbar-safe-area-inset-top
类,该类之前用于处理安全区域的内边距样式。TypeScript文件中添加了对SafeArea
组件的导入,并根据safeAreaInsetTop
属性的值条件性地在导航栏顶部包含该组件。整体结构和功能保持不变。
文件路径 | 更改摘要 |
---|---|
src/packages/navbar/navbar.scss |
删除了.nut-navbar-safe-area-inset-top 类。 |
src/packages/navbar/navbar.taro.tsx src/packages/navbar/navbar.tsx |
添加了对SafeArea 组件的导入,并根据safeAreaInsetTop 属性条件性地包含该组件。移除了条件类赋值。 |
size/XS
在导航栏上跳跃,
安全区域已远去,
新的组件在上方,
让我们一起欢呼吧!
🐇✨
🤔 这个变动的性质是?
Summary by CodeRabbit
新功能
safeAreaInsetTop
属性条件性地包含SafeArea
组件,以确保在安全区域内的显示。样式
.nut-navbar-safe-area-inset-top
类,取消了与安全区域内边距相关的样式。