From fd3530cce0e0901cc09a4678a8c11008fe992531 Mon Sep 17 00:00:00 2001 From: opficdev Date: Mon, 30 Nov 2026 00:31:13 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EB=84=93=EC=9D=80=20=EC=B0=BD?= =?UTF-8?q?=EC=9D=98=20=EA=B3=A0=EB=A5=B4=EB=8A=94=20=ED=8C=90=20=EB=86=92?= =?UTF-8?q?=EC=9D=B4=EB=A5=BC=20=EC=B0=BD=20=EC=95=84=EB=9E=98=20=EC=97=AC?= =?UTF-8?q?=EB=B0=B1=20=EC=95=88=EC=9C=BC=EB=A1=9C=20=EC=A0=9C=ED=95=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Common/Component/CompositionContainer.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Application/Presentation/PresentationShared/Sources/Common/Component/CompositionContainer.swift b/Application/Presentation/PresentationShared/Sources/Common/Component/CompositionContainer.swift index 7d33cf64..d83145b2 100644 --- a/Application/Presentation/PresentationShared/Sources/Common/Component/CompositionContainer.swift +++ b/Application/Presentation/PresentationShared/Sources/Common/Component/CompositionContainer.swift @@ -97,7 +97,7 @@ public extension View { // 고르는 화면 // 좁은 창은 시트로 띄우고, 칸으로 나눈 화면은 compositionPickerAnchor를 붙인 버튼 아래에 직접 그린 판으로 띄움 - // maxHeight가 없으면 판을 내용 높이에 맞춤 + // maxHeight가 없으면 판을 내용 높이에 맞추고, 창이 낮으면 남은 높이까지 줄임 func compositionPicker( isPresented: Binding, isActive: Bool = true, @@ -482,7 +482,6 @@ private struct CompositionPickerPanel: View { .frame(height: min(maxHeight, available)) } else { content - .fixedSize(horizontal: false, vertical: true) } } .frame(width: width) @@ -493,6 +492,8 @@ private struct CompositionPickerPanel: View { .strokeBorder(Color.separator) } .shadow(color: Color.black.opacity(colorScheme == .dark ? 0.5 : 0.12), radius: 30, y: 24) + // 내용 높이에 맞춘 판도 창 아래 여백 안까지만 높이를 내줌 + .frame(maxHeight: available, alignment: .top) .offset(x: leading, y: top) } } From 2970f73eacdadcab44517006e62ed61b4bf8f137 Mon Sep 17 00:00:00 2001 From: opficdev Date: Mon, 30 Nov 2026 00:31:13 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=EB=82=AE=EC=9D=80=20=EC=B0=BD?= =?UTF-8?q?=EC=9D=98=20=EB=B6=84=EA=B8=B0=20=EC=84=A0=ED=83=9D=20=ED=8C=90?= =?UTF-8?q?=20=EB=B3=B8=EB=AC=B8=EC=9D=84=20=EC=A0=9C=EB=AA=A9=20=EC=A4=84?= =?UTF-8?q?=20=EC=95=84=EB=9E=98=EC=97=90=EC=84=9C=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A1=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Profile/ActivityCard.swift | 62 +++++++++++-------- 1 file changed, 36 insertions(+), 26 deletions(-) diff --git a/Application/Presentation/ProfileTab/Sources/Profile/ActivityCard.swift b/Application/Presentation/ProfileTab/Sources/Profile/ActivityCard.swift index 6b221fab..695a0d9b 100644 --- a/Application/Presentation/ProfileTab/Sources/Profile/ActivityCard.swift +++ b/Application/Presentation/ProfileTab/Sources/Profile/ActivityCard.swift @@ -223,32 +223,7 @@ struct QuarterPickerSheet: View { // Mac, iPad 넓은 화면 분기 선택 판 // 위쪽 제목·완료 줄, 바탕 없는 연도 행, 1~4분기 두 줄 격자 배치 private var desktopContent: some View { - VStack(spacing: 0) { - ZStack { - Text(String(localized: "profile_select_quarter", bundle: PresentationResources.bundle)) - .font(.system(size: isiOSAppOnMac ? 14 * AdaptiveSize.boardScale : 17, weight: .bold)) - HStack { - Spacer() - Button { - store.send(.setQuarterPickerPresented(false)) - } label: { - Text(String(localized: "common_done", bundle: PresentationResources.bundle)) - .font(.adaptive(isiOSAppOnMac ? .body : .callout).bold()) - .foregroundStyle(Color.label) - .padding(.horizontal, 4 * AdaptiveSize.boardScale) - .contentShape(.rect) - } - .buttonStyle(.plain) - } - } - .padding(.horizontal, 10 * AdaptiveSize.boardScale) - .frame(height: isiOSAppOnMac ? 44 * AdaptiveSize.boardScale : 52) - .overlay(alignment: .bottom) { - Rectangle() - .fill(Color.separator) - .frame(height: 1) - } - + let content = VStack(spacing: 0) { // 연도 값이 행 오른쪽 끝에 있어 메뉴 오른쪽 끝을 행 오른쪽 끝에 맞춤 DropdownMenu( alignment: .trailing, @@ -289,6 +264,41 @@ struct QuarterPickerSheet: View { .padding(.top, isiOSAppOnMac ? 8 * AdaptiveSize.boardScale : 12) .padding(.bottom, isiOSAppOnMac ? 14 * AdaptiveSize.boardScale : 16) } + + return VStack(spacing: 0) { + ZStack { + Text(String(localized: "profile_select_quarter", bundle: PresentationResources.bundle)) + .font(.system(size: isiOSAppOnMac ? 14 * AdaptiveSize.boardScale : 17, weight: .bold)) + HStack { + Spacer() + Button { + store.send(.setQuarterPickerPresented(false)) + } label: { + Text(String(localized: "common_done", bundle: PresentationResources.bundle)) + .font(.adaptive(isiOSAppOnMac ? .body : .callout).bold()) + .foregroundStyle(Color.label) + .padding(.horizontal, 4 * AdaptiveSize.boardScale) + .contentShape(.rect) + } + .buttonStyle(.plain) + } + } + .padding(.horizontal, 10 * AdaptiveSize.boardScale) + .frame(height: isiOSAppOnMac ? 44 * AdaptiveSize.boardScale : 52) + .overlay(alignment: .bottom) { + Rectangle() + .fill(Color.separator) + .frame(height: 1) + } + + // 창이 낮아 판이 줄면 제목 줄 아래 내용만 스크롤 + ViewThatFits(in: .vertical) { + content + ScrollView { + content + } + } + } } private var mobileContent: some View {