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: vertically center username in profile popup #474

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Conversation

lunikai
Copy link
Collaborator

@lunikai lunikai commented Mar 13, 2024

요약 *

It closes #468

  • 프로필에 나오는 username의 vertical alignment를 center 하였습니다.

스크린샷

image
image

이후 Task *

  • 만약 나중에 프로필의 디자인을 바꿔서 크기를 더 크게 만들게 된다면 그 안에 있는 elements들의 width, height, horizontal and vertical padding 등을 다시 수정하여서 맞추어야 할 것 같습니다.

Copy link

netlify bot commented Mar 13, 2024

Deploy Preview for biseo-preview ready!

Name Link
🔨 Latest commit 2cc883a
🔍 Latest deploy log https://app.netlify.com/sites/biseo-preview/deploys/65f188561e5baf00085378ed
😎 Deploy Preview https://deploy-preview-474--biseo-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -43,6 +43,7 @@ export const Profile: React.FC<Props> = ({ displayName, onLogout }) => (
w(100),
h(18),
padding.horizontal(8),
padding.vertical(2),
justify.between,
align.center,
]}
Copy link
Collaborator

Choose a reason for hiding this comment

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

명시적인 수치로 하는게 좋을지,
바깥쪽 div를 display:flex로 선언하고 align-items를 center로 주는게 좋을지 의견이 궁금합니다.

저희 명시적으로 이런쪽에 대한 규칙은 없었던 것 같아서 궁금합니다!

이후에 UI 인터페이스 확대 작업이랑 연결했을 때도 변화가 없다면 변경이 적은 작업인게 더 좋을 것 같습니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Sanghou 기존에 있던 Profile styling을 위한 코드가 horizontal/vertical padding 들을 사용하고 있어서, 원래 코드와 비슷한 방법으로 해결을 하려고 하였습니다.
하지만 앞으로 UI 인터페이스를 확대 할 것을 생각하면 더 유연한 방법으로 해결하는 것이 도움이 될것 같네요.
제안 해주신 방법으로 다시 해결해 보겠습니다!

@lunikai lunikai added the FE Tasks for the front-end part label Mar 21, 2024
Copy link
Collaborator

@rjsdn0 rjsdn0 left a comment

Choose a reason for hiding this comment

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

lgtm

@rjsdn0 rjsdn0 merged commit 3ff72ec into main Mar 27, 2024
5 checks passed
@rjsdn0 rjsdn0 deleted the fix/profile-alignment branch March 27, 2024 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE Tasks for the front-end part
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UI 개선] 유저 아이콘 드롭다운 vertical alignment 이슈
3 participants