Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: timeline full token #35686

Merged
merged 4 commits into from
May 24, 2022
Merged

refactor: timeline full token #35686

merged 4 commits into from
May 24, 2022

Conversation

MadCcc
Copy link
Member

@MadCcc MadCcc commented May 23, 2022

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English -
🇨🇳 Chinese -

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@github-actions
Copy link
Contributor

github-actions bot commented May 23, 2022

@github-actions
Copy link
Contributor

github-actions bot commented May 23, 2022

Size Change: +418 B (0%)

Total Size: 893 kB

Filename Size Change
./dist/antd-with-locales.min.js 459 kB +1.19 kB (0%)
./dist/antd.compact.min.css 7.31 kB -474 B (-6%)
./dist/antd.dark.min.css 7.36 kB -473 B (-6%)
./dist/antd.min.css 7.34 kB -472 B (-6%)
./dist/antd.min.js 404 kB +1.11 kB (0%)
./dist/antd.variable.min.css 7.74 kB -464 B (-6%)

compressed-size-action

@codecov
Copy link

codecov bot commented May 23, 2022

Codecov Report

Merging #35686 (b67057f) into next (47d73d8) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              next    #35686    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          469       472     +3     
  Lines         8490      8738   +248     
  Branches      2404      2507   +103     
==========================================
+ Hits          8490      8738   +248     
Impacted Files Coverage Δ
components/popover/index.tsx 100.00% <0.00%> (ø)
components/tooltip/index.tsx 100.00% <0.00%> (ø)
components/popconfirm/index.tsx 100.00% <0.00%> (ø)
components/message/useMessage.tsx 100.00% <0.00%> (ø)
components/breadcrumb/Breadcrumb.tsx 100.00% <0.00%> (ø)
components/table/hooks/useSelection.tsx 100.00% <0.00%> (ø)
components/locale/tk_TK.tsx 100.00% <0.00%> (ø)
components/time-picker/locale/tk_TK.tsx 100.00% <0.00%> (ø)
components/date-picker/locale/tk_TK.tsx 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47d73d8...b67057f. Read the comment docs.

timeLineItemPaddingBottom: number;
timeLineItemHeadSize: number;
timeLineItemCustomHeadPadding: string;
timeLineRightPadding: number;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paddingInlineEnd

@MadCcc MadCcc mentioned this pull request May 24, 2022
const timeLineToken = mergeToken<TimelineToken>(token, {
timeLineItemPaddingBottom: token.padding * 1.25,
timeLineItemHeadSize: 10,
timeLineItemCustomHeadPadding: '3px 1px',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个数字有点问题,我看了一下现在的 timeline 这个是 18,但是右侧的是 22。应该和 22 对齐,用 fontSize * lineHeight 反推一个出来~

@MadCcc MadCcc merged commit 9f2b08c into next May 24, 2022
@MadCcc MadCcc deleted the refactor/timeline-full-token branch May 24, 2022 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants