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

Revert "Buttonからmin-widthを除去" #262

Merged
merged 3 commits into from
Mar 24, 2021
Merged

Conversation

hirokikondo86
Copy link
Contributor

This reverts commit c83eaf8.

やったこと

min-widthを削除したことによって、ボタンテキストが日本語の際にボタンの横幅がおかしくなるので、min-widthを削除したコミットをrevertした。

問題のスクショ

Before

image

After

image

@hirokikondo86 hirokikondo86 requested a review from a team as a code owner March 23, 2021 09:08
@hirokikondo86 hirokikondo86 self-assigned this Mar 23, 2021
Comment on lines 121 to 134
const buttonSize: Record<ButtonSize, { minWidth: string; height: string }> = {
small: {
minWidth: "64px",
height: "32px",
},
medium: {
minWidth: "130px",
height: "42px",
},
large: {
minWidth: "178px",
height: "48px",
},
};
Copy link
Contributor

Choose a reason for hiding this comment

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

height は復活させちゃって大丈夫?
確かゴリにゃのPRで消したんじゃなかったっけ??

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

revertする際にどこまで消せばいいのか分からず、一旦残しておきました!
確かに僕のPRでheightは削除しているので、消しちゃっても大丈夫そうです!
確認して修正します!

@hirokikondo86
Copy link
Contributor Author

@ryokosuge
反映しました!

@ryokosuge ryokosuge self-requested a review March 23, 2021 09:33
Copy link
Contributor

@ryokosuge ryokosuge left a comment

Choose a reason for hiding this comment

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

👍

@hirokikondo86 hirokikondo86 merged commit d441845 into master Mar 24, 2021
@hirokikondo86 hirokikondo86 deleted the revert-minwidth branch March 24, 2021 01:27
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