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(button): large size width error #79

Merged
merged 1 commit into from
Jan 7, 2022
Merged

fix(button): large size width error #79

merged 1 commit into from
Jan 7, 2022

Conversation

vhxubo
Copy link
Contributor

@vhxubo vhxubo commented Jan 4, 2022

"style"="v2", 微信小程序会有以下自带样式, 使得按钮 large size 的宽度显示不正常(如无法占满父组件等)

button:not([size=mini]) {
    margin-left: auto;
    margin-right: auto;
    width: 184px;
}

通过为 t-size-l 设置 width: auto; 修复

@JJunYang JJunYang requested a review from LeeJim January 5, 2022 09:37
Copy link
Collaborator

@LeeJim LeeJim left a comment

Choose a reason for hiding this comment

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

LGTM

@LeeJim LeeJim merged commit 1d6d0a8 into Tencent:develop Jan 7, 2022
@vhxubo vhxubo deleted the fix/button/large-width-error branch January 20, 2022 12:46
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