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: shoving searchPrefix in SearchTextField #103

Merged
merged 2 commits into from
May 16, 2024
Merged

Conversation

Hanna922
Copy link
Member

1️⃣ 어떤 작업을 했나요? (Summary)

기존 코드에 영향을 미치는 변경사항

피그마 상에서 SearchPrefix icon 크기는 20 * 20이고, div로 감싸면 간단하게 해결 되어서 이렇게 작업했습니다.

수정 전 수정 후
image image

추가로 StyledSuffixIconContainer에 타입이 불필요해서 삭제했습니다.

3️⃣ 추후 작업

진짜진짜진짜 배포.

4️⃣ 체크리스트 (Checklist)

  • main 브랜치의 최신 코드를 pull 받았나요?

@Hanna922 Hanna922 added bug Something isn't working fix labels May 16, 2024
@Hanna922 Hanna922 self-assigned this May 16, 2024
@Hanna922 Hanna922 requested a review from nijuy as a code owner May 16, 2024 13:38
@Hanna922 Hanna922 changed the title Fix/#102 search icon fix: shoving searchPrefix in SearchTextField May 16, 2024
display: none;
`;

export const StyledSearchPrefixContainer = styled.div`
display: flex;
Copy link
Collaborator

@nijuy nijuy May 16, 2024

Choose a reason for hiding this comment

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

왜 size: 1.5rem 해놨는데 보장이 안됐는지

StyledTextFieldWrapper에서 display: flex 로 요소 가로 정렬 중인데,
내부 아이템의 flex-shrink 기본값이 1이라 너비 무시하고 걍 줄어들 때가 있어요
아마 얘도 같은 문제지 싶은데. . . 자세한 내용은 yourssu/Soomsil-Web#153 보시면 좋을 거 같습니당

근데 1.25rem이네. 제가 왜 저렇게 넣어놨는지는? 몰으겠습니다 감사하다
image


지금은 이렇게 해결해도 괜찮은데 나중에 같은 문제를 다른 곳에서 만나면 flex 내부 아이템에 flex-shrink 속성을 부여해서 해결하는 게 깔끔할 거 같습니다!! 매번 컴포넌트로 감쌀 수 없으니까!!

Copy link
Member Author

Choose a reason for hiding this comment

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

구웃~!!!

@Hanna922 Hanna922 merged commit 88fe519 into develop May 16, 2024
1 check passed
@Hanna922 Hanna922 deleted the fix/#102-search-icon branch May 16, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: shoving searchPrefix in SearchTextField
2 participants