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

fix(td_button): 修复设置shape为square或circle时出现overflow #257

Merged
merged 3 commits into from
Aug 15, 2024

Conversation

epoll-j
Copy link
Contributor

@epoll-j epoll-j commented Jul 25, 2024

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

#254

💡 需求背景和解决方案

修复td_button设置shape为square或circle时出现overflow right 2px

📝 更新日志

  • fix(td_button): 修复设置shape为square或circle时出现overflow

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • Changelog 已提供或无须提供

@@ -363,19 +363,19 @@ class _TDButtonState extends State<TDButton> {
double verticalPadding;
switch (widget.size) {
case TDButtonSize.large:
horizontalPadding = equalSide ? 12 : 20;
horizontalPadding = equalSide ? 10 : 20;
Copy link
Collaborator

Choose a reason for hiding this comment

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

参考设计稿,这的Padding是符合设计规范的。数据溢出是因为_getIconSize的尺寸过大。IconSize的尺寸应该分别是:22,20,18,18;请修改_getIconSize(),谢谢。设计稿地址:https://codesign.qq.com/s/332865

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已通过修改_getIconSize的方法修复该问题

@Luozf12345 Luozf12345 merged commit 448bf65 into Tencent:develop Aug 15, 2024
2 checks passed
@github-actions github-actions bot mentioned this pull request Oct 15, 2024
15 tasks
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.

2 participants