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

DM / ホームチャンネルボタン内部で、アイコンだけの表示時に偏らないように #4370

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

Pugma
Copy link
Contributor

@Pugma Pugma commented Sep 9, 2024

margin -> gap で余白の取り方を変えることで、アイコンしか表示されないスマホモード時に表示が偏ることを解消しました

変更前
image

変更後
image

@Pugma Pugma requested a review from nokhnaton September 9, 2024 14:25
@Pugma Pugma marked this pull request as ready for review September 9, 2024 14:25
Copy link

github-actions bot commented Sep 9, 2024

Copy link
Contributor

@nokhnaton nokhnaton left a comment

Choose a reason for hiding this comment

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

中の要素が一個しかないからgapはつけなくても良さそう

@Pugma
Copy link
Contributor Author

Pugma commented Sep 10, 2024

PC 版だと「ホーム」とか「DM」って文字が表示されていて、それとの余白を保つための margin でした
それを gap に置き換えたという感じなので、gap は必要だと思います

Copy link
Member

@TwoSquirrels TwoSquirrels left a comment

Choose a reason for hiding this comment

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

gap は要素を均等に並べたいときに使うものですが、今回の場合は仮に要素が増えたとしても 4px 間隔で並べるべきなら適切だと思います。
また今回の場合、isMobile を使うと無駄にコードが複雑になってしまうと考えられるので、gap で適切だと思いました。

なので LGTM です。

Copy link
Contributor

@nokhnaton nokhnaton left a comment

Choose a reason for hiding this comment

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

なるほど。じゃあ良さそう

@Pugma Pugma merged commit 5c6a0ce into master Sep 18, 2024
10 checks passed
@Pugma Pugma deleted the fix/profileButtonMargin branch September 18, 2024 08:57
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.

3 participants