[FIX] 긴 폴더명 드롭다운 말줄임 처리#70
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #59
개요
저장 링크 전체보기 화면의 폴더 필터 드롭다운에서 긴 폴더명이 좁은 폭 안에서 과도하게 잘리거나, 선택된 필터칩에서 주변 UI를 밀어낼 수 있는 문제를 개선했습니다.
기존 드롭다운은
전체필터칩의 폭을 기준으로 표시되면서 긴 폴더명이 6글자 내외로만 보일 수 있었습니다. 이 경우 폴더명의 앞부분이 같은 항목들이 있을 때 사용자가 폴더를 구분하기 어려웠습니다.이번 작업에서는 드롭다운 항목 텍스트에 한 줄 말줄임 처리를 적용하고, 긴 폴더명이 하나라도 있는 경우 드롭다운 폭을 최대 15글자 정도까지 확장하도록 조정했습니다. 동시에 작은 화면에서는 화면 폭을 기준으로 드롭다운 폭을 제한해 화면 밖으로 과도하게 벗어나지 않도록 처리했습니다.
선택된 필터칩 라벨도 한 줄 말줄임 처리와 flex 제약을 적용해, 긴 폴더명을 선택해도 북마크 필터칩이나 주변 UI를 밀어내지 않도록 보완했습니다.
추가로 Android 에뮬레이터에서 확인하던 중 폴더 개수가 많아지면 드롭다운 하단 항목이 화면 밖으로 밀려 보이지 않는 문제가 확인되었습니다. 이 부분은 최초 이슈 범위에는 없었지만, 같은 폴더 드롭다운 사용성 문제라 함께 보완했습니다. 드롭다운을 화면 기준 레이어에 띄우고, 목록이 길어지는 경우 내부 스크롤을 통해 아래 항목까지 확인할 수 있도록 수정했습니다.
또한
Modal기반 드롭다운으로 변경한 뒤 safe area 좌표 차이로 인해 드롭다운이 필터칩을 가리는 문제가 있어, 상단 safe area 값을 반영해 기존처럼 필터칩 아래에 표시되도록 위치를 보정했습니다.주요 구현 내용
numberOfLines={1}적용ellipsizeMode="tail"적용flexShrink,minWidth: 0,maxWidth제약 적용Modal레이어 기반으로 렌더링Modal기반 드롭다운 위치 계산 시 safe area top inset 반영파일별 역할
components/ui/filter-chip.tsx: 필터칩 라벨 및 드롭다운 항목의 말줄임 처리, 긴 폴더명 기준 드롭다운 폭 계산, 긴 목록 스크롤, Modal 기반 드롭다운 렌더링 및 safe area 위치 보정 추가해결한 이슈 목록
numberOfLines={1}적용ellipsizeMode="tail"적용Modal기반 드롭다운이 필터칩 영역을 가리는 문제 보정체크 사항
참고사항
Modal기반 드롭다운은 safe area top inset을 반영해 기존처럼 필터칩 아래에 표시되도록 보정했습니다.Screenshots or Video