antvis / S2

⚡️ A practical visualization library for tabular analysis.
https://s2.antv.antgroup.com
MIT License
1.49k stars 196 forks source link

feat: 优化紧凑模式下的单元格宽度计算方式 #2953

Closed lijinke666 closed 3 weeks ago

lijinke666 commented 3 weeks ago

👀 PR includes

🎨 Enhance

📝 Description

  1. 对测量的文本宽度向上取整, 避免紧凑模式下极端情况出现文本出现省略号的问题
  2. 调整单元格最小可拖拽宽度的默认值 https://github.com/antvis/S2/issues/2900

🖼️ Screenshot

Before After

🔗 Related issue link

🔍 Self-Check before the merge

vercel[bot] commented 3 weeks ago

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

Name Status Preview Comments Updated (UTC)
antvis-s2 ❌ Failed (Inspect) Nov 1, 2024 10:21am
github-actions[bot] commented 3 weeks ago

你好, @lijinke666 CI 执行失败, 请点击 [Details] 按钮查看, 并根据日志修复

Hello, @lijinke666 CI run failed, please click the [Details] button for detailed log information and fix it.

github-actions[bot] commented 3 weeks ago

Size Change: +15 B (0%)

Total Size: 335 kB

Filename Size Change
./packages/s2-core/dist/index.min.js 236 kB +15 B (+0.01%)
ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `./packages/s2-core/dist/style.min.css` | 388 B | | `./packages/s2-react/dist/index.min.js` | 70.9 kB | | `./packages/s2-react/dist/style.min.css` | 3.77 kB | | `./packages/s2-vue/dist/index.min.js` | 22.9 kB | | `./packages/s2-vue/dist/style.min.css` | 1.85 kB |

compressed-size-action

codecov-commenter commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.70%. Comparing base (ecdc9c8) to head (edf0b94). Report is 469 commits behind head on next.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## next #2953 +/- ## ========================================== + Coverage 75.77% 80.70% +4.93% ========================================== Files 257 179 -78 Lines 11994 10426 -1568 Branches 2464 2371 -93 ========================================== - Hits 9088 8414 -674 + Misses 1398 561 -837 + Partials 1508 1451 -57 ```

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

lijinke666 commented 3 weeks ago

:tada: This PR is included in version @antv/s2-v2.0.0-next.31 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

lijinke666 commented 3 weeks ago

:tada: This PR is included in version @antv/s2-react-v2.0.0-next.30 :tada:

The release is available on:

Your semantic-release bot :package::rocket: