react-component / util

Common Utils For React Component
util.vercel.app
MIT License
622 stars 176 forks source link

fix: not force fill auto #508

Closed zombieJ closed 5 months ago

zombieJ commented 5 months ago

fix https://github.com/ant-design/ant-design/issues/47754

Chrome 下,::-webkit-scrollbar 设置 width/height: atuostyle 默认的 width/height: atuo 行为不一致。显式设置会变成固定占位,而默认 auto 则不会。

PS: JSDOM 不能模拟这种情况

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
util ✅ Ready (Inspect) Visit Preview Mar 7, 2024 7:33am
codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 89.90%. Comparing base (6253c1b) to head (508bd9c).

Files Patch % Lines
src/getScrollBarSize.tsx 0.00% 8 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #508 +/- ## ========================================== - Coverage 90.48% 89.90% -0.58% ========================================== Files 38 38 Lines 935 941 +6 Branches 295 299 +4 ========================================== Hits 846 846 - Misses 87 93 +6 Partials 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.