Skip to content

[Fix] 제보하기 말풍선 label 폰트 수정, 루틴 등록화면 컴포넌트 레이아웃 수정#86

Merged
taipaise merged 1 commit intodevelopfrom
fix/ui
Feb 17, 2026
Merged

[Fix] 제보하기 말풍선 label 폰트 수정, 루틴 등록화면 컴포넌트 레이아웃 수정#86
taipaise merged 1 commit intodevelopfrom
fix/ui

Conversation

@taipaise
Copy link
Collaborator

@taipaise taipaise commented Feb 17, 2026

👩‍💻 Contents

Summary by CodeRabbit

  • 스타일
    • 감정 등록 화면의 텍스트 폰트 및 간격 개선
    • 루틴 생성 카드의 확장/축소 상태별 레이아웃 동작 최적화

@coderabbitai
Copy link

coderabbitai bot commented Feb 17, 2026

워크스루

세 개의 뷰 컨트롤러와 커스텀 뷰에서 UI 레이아웃 및 스타일링 업데이트를 진행했습니다. 스피치 레이블의 폰트 패밀리를 cafe24Ssurround로 변경하고, 하단 여백 제약 조건을 추가했으며, 분할선의 제약 조건 관리 방식을 개선했습니다.

변경 사항

코호트 / 파일(들) 요약
스피치 레이블 폰트 및 제약 조건 업데이트
Projects/Presentation/Sources/EmotionRegister/View/EmotionRegisterCompletionViewController.swift, Projects/Presentation/Sources/EmotionRegister/View/EmotionRegistrationViewController.swift
speechLabelBottomSpacing 상수를 도입하고 speechLabel의 폰트를 cafe24Ssurround 패밀리의 cafe24Title2 스타일(light 굵기)로 변경했습니다. speechLabel 하단이 speechImageView 하단에서 새로운 여백만큼 떨어지도록 제약 조건을 추가했습니다.
분할선 제약 조건 저장 및 상태 관리
Projects/Presentation/Sources/RoutineCreation/View/Component/RoutineCreationCardView.swift
divideLineTopConstraint 참조를 도입하여 분할선의 상단 제약 조건을 저장하고 관리합니다. 확장/축소 상태에 따라 제약 조건의 오프셋을 동적으로 조정(확장 시 Layout.edgeSpacing, 축소 시 0)합니다.

예상 코드 리뷰 노력

🎯 2 (Simple) | ⏱️ ~10분

🐰 폰트 다시 꾸미고 (café 향이 나는군!)
제약 조건 정렬하며, 선도 춤을 춘다네
화면이 쫙쫙 펼쳐지니
깔끔한 레이아웃, 토끼 미소
✨ 디자인이 반짝반짝!

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 제목이 변경사항의 주요 내용을 명확하게 요약하고 있습니다. 말풍선 라벨 폰트 수정과 루틴 등록화면 레이아웃 수정이라는 두 가지 주요 변경사항을 모두 포함하고 있습니다.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/ui

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (2)
Projects/Presentation/Sources/RoutineCreation/View/Component/RoutineCreationCardView.swift (1)

170-173: 초기 오프셋에 CGFloat.zero 대신 0을 사용하는 것을 고려해 보세요.

CGFloat.zero는 동작상 문제는 없지만, Line 258에서 Layout.edgeSpacing을 사용하는 것과 대칭적으로 Layout.divideLineTopSpacing 같은 상수를 사용하거나, 간결하게 0을 쓰는 것이 일관성 면에서 더 좋습니다. 또한 Line 265의 collapse 시에도 동일하게 CGFloat.zero가 사용되고 있습니다.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@Projects/Presentation/Sources/RoutineCreation/View/Component/RoutineCreationCardView.swift`
around lines 170 - 173, Replace the uses of CGFloat.zero for the divide line top
offset with a consistent constant or a plain 0: update the constraint creation
where divideLineTopConstraint is set relative to labelStackView.snp.bottom to
use either Layout.divideLineTopSpacing (or a new Layout constant e.g.,
Layout.divideLineTopSpacing) or simply 0, and make the same change where the
constraint is modified on collapse (the other place that currently uses
CGFloat.zero) so both places use the same concise constant.
Projects/Presentation/Sources/EmotionRegister/View/EmotionRegistrationViewController.swift (1)

128-131: style: 뒤에 공백이 누락되었습니다.

Line 130에서 style:.cafe24Title2style: .cafe24Title2로 수정하면 다른 파라미터와 일관된 포맷이 됩니다.

🔧 수정 제안
         speechLabel.font = BitnagilFont.init(
             family: .cafe24Ssurround,
-            style:.cafe24Title2,
+            style: .cafe24Title2,
             weight: .light).font
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@Projects/Presentation/Sources/EmotionRegister/View/EmotionRegistrationViewController.swift`
around lines 128 - 131, The formatting of the BitnagilFont initializer call is
inconsistent: in the speechLabel.font assignment (BitnagilFont.init) change the
parameter formatting from "style:.cafe24Title2" to "style: .cafe24Title2" so it
matches the other parameters (family: and weight:) and keeps consistent spacing
around colons.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In
`@Projects/Presentation/Sources/EmotionRegister/View/EmotionRegistrationViewController.swift`:
- Around line 128-131: The formatting of the BitnagilFont initializer call is
inconsistent: in the speechLabel.font assignment (BitnagilFont.init) change the
parameter formatting from "style:.cafe24Title2" to "style: .cafe24Title2" so it
matches the other parameters (family: and weight:) and keeps consistent spacing
around colons.

In
`@Projects/Presentation/Sources/RoutineCreation/View/Component/RoutineCreationCardView.swift`:
- Around line 170-173: Replace the uses of CGFloat.zero for the divide line top
offset with a consistent constant or a plain 0: update the constraint creation
where divideLineTopConstraint is set relative to labelStackView.snp.bottom to
use either Layout.divideLineTopSpacing (or a new Layout constant e.g.,
Layout.divideLineTopSpacing) or simply 0, and make the same change where the
constraint is modified on collapse (the other place that currently uses
CGFloat.zero) so both places use the same concise constant.

@taipaise taipaise merged commit 98fc1cc into develop Feb 17, 2026
2 checks passed
@taipaise taipaise deleted the fix/ui branch February 17, 2026 12:00
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.

1 participant