fix: 좁은 기기와 폰트 확대에서 카드 요소가 종이 밖으로 밀리는 문제 수정 - #66
Merged
Merged
Conversation
카드 높이만 폭에 비례해 줄고 안쪽 여백과 캐릭터는 고정 dp 여서 360dp 기기에서 버튼이 종이 밖으로 밀림. 본문 3줄 기준으로 대응.
카드는 늘거나 스크롤할 수 없어 폰트 확대분이 그대로 세로 예산을 먹음. 카드 안 폰트 배율에 상한을 두고 아래쪽 테두리 여백을 확보.
soyeonLee126
marked this pull request as ready for review
September 14, 2026 04:44
쓰이지 않던 showDivider 와 공유 줄 기본값 제거. 카드 치수와 본문 줄 상한을 GamssCardDefaults 로 모음.
seunghee17
approved these changes
Sep 16, 2026
seunghee17
left a comment
Collaborator
There was a problem hiding this comment.
실기기 테스트결과 문제 없어 머지 합니다~
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.
작업 개요
카드 내용이 길거나 폰트를 키우면 카드 아래 요소(버튼, 접기 안내)가 종이 밖으로 밀려 잘리는 문제를 고칩니다.
원인은 카드 높이는 폭에 비례해 줄어드는데(
aspectRatio(366:528)) 안쪽 여백 48/40dp, 캐릭터 그림 156dp, 점선 간격 22dp 는 절대 dp 였고, 글자는 시스템 폰트 배율을 그대로 타서 세로 예산을 초과했다는 점입니다. 360dp 기기에서는 본문 3줄이면 카드 높이 473dp 에 497dp 가 필요해 23dp 가 밀려났습니다.작업 유형
변경 사항
배율 = 카드 폭 / 366, 상한 1.0 이라 402dp 이상 화면은 시안 값 그대로입니다. 글자 크기에는 이 배율을 적용하지 않습니다.1.3 x 카드 배율이고 1.0 아래로는 내려가지 않습니다. 카드는 종이 그림 비율이 고정이라 늘거나 스크롤할 수 없어, 상한이 없으면 요약이 한 줄로 쪼그라든 뒤에도 아래 안내가 종이 밖으로 나갑니다.capFontScale = false). 넘칠 일이 없으므로 시스템 설정을 그대로 따릅니다.세로 여유 비교 (본문 3줄, 기본 폰트)
관련 이슈
관련 작업 (Notion)
스크린샷 / 동작 화면
수정 전 접기 화면(시스템 폰트 2.0, SM-S911N)에서는 요약이 한 줄로 잘린 뒤에도 "종이를 눌러 2번 접어주세요" 안내가 종이 테두리를 넘어갔습니다. Before / After 캡처는 추가 예정입니다.
체크리스트
develop으로 설정되어 있다feat:,fix:등)을 따른다리뷰 요청 사항
...로 끊깁니다. 요약은 온디바이스 모델 출력이라 최대 130자 안팎까지 나올 수 있습니다.검증 범위를 밝혀 두면, 3개 모듈 컴파일과 실기기(SM-S911N) 설치까지 확인했고 폰트 상한 적용본의 기기 화면 확인은 하지 못했습니다. 프리뷰로 봐 주시면 좋겠습니다.