Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public struct GoalDetailView: View {
recordSection
recordActionButton
}
// 사이드바가 있으면 칸 가운데 목록 폭으로 모으고 스크롤 영역은 칸 전체 폭 유지
.frame(maxWidth: usesDesktopLayout ? 600 * AdaptiveSize.boardScale : .infinity)
.frame(maxWidth: .infinity)
}
.safeAreaInset(edge: .top, spacing: 0) { topBar }
.background(Color.background.ignoresSafeArea())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ struct SearchView: View {
@Environment(\.isiOSAppOnMac) private var isiOSAppOnMac
@Environment(\.usesDesktopLayout) private var usesDesktopLayout
@Environment(\.windowControlsInset) private var windowControlsInset
@Environment(\.readableContentWidth) private var readableContentWidth
@Environment(\.deviceType) private var deviceType
@Bindable private var store: StoreOf<SearchFeature>
// 좁은 창에서 쌓아 연 결과 상세의 편집을 Mac 편집 창과 같은 경로로 전달
Expand Down Expand Up @@ -53,7 +52,8 @@ struct SearchView: View {
SearchResults(store: store, onSelectTodo: onSelectTodo)
}
}
.frame(maxWidth: readableContentWidth)
// 사이드바가 있으면 칸 가운데 목록 폭으로 모으고 스크롤 영역은 칸 전체 폭 유지
.frame(maxWidth: usesDesktopLayout ? 600 * AdaptiveSize.boardScale : .infinity)
.frame(maxWidth: .infinity)
}
.safeAreaInset(edge: .top, spacing: 0) {
Expand All @@ -62,7 +62,7 @@ struct SearchView: View {
SearchField(store: store)
.padding(.horizontal, isiOSAppOnMac ? 14 * AdaptiveSize.boardScale : 16)
.padding(.vertical, isiOSAppOnMac ? 4 * AdaptiveSize.boardScale : 8)
.frame(maxWidth: readableContentWidth)
.frame(maxWidth: usesDesktopLayout ? 600 * AdaptiveSize.boardScale : .infinity)
}
.background(Color.background)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ private struct TodoListContent: View {
@Environment(\.usesDesktopLayout) private var usesDesktopLayout
@Environment(\.usesPaneLayout) private var usesPaneLayout
@Environment(\.windowControlsInset) private var windowControlsInset
@Environment(\.readableContentWidth) private var readableContentWidth
@Environment(\.deviceType) private var deviceType
let store: StoreOf<TodoListFeature>
let onSelectTodo: (String) -> Void
Expand Down Expand Up @@ -233,7 +232,8 @@ private struct TodoListContent: View {
.clipShape(.rect)
// Mac은 둥근 선택·마우스 표시가 칸 가장자리에 붙지 않도록 좌우 여백 표시
.padding(.horizontal, isiOSAppOnMac ? 16 : 0)
.frame(maxWidth: readableContentWidth)
// 사이드바가 있으면 칸 가운데 목록 폭으로 모으고 스크롤 영역은 칸 전체 폭 유지
.frame(maxWidth: usesDesktopLayout ? 600 * AdaptiveSize.boardScale : .infinity)
.frame(maxWidth: .infinity)
}
}
Expand Down Expand Up @@ -299,8 +299,8 @@ private func presentDeleteTodoToast(_ todoId: String, store: StoreOf<TodoListFea

private struct TodoListTopBar: View {
@Environment(\.dismiss) private var dismiss
@Environment(\.usesDesktopLayout) private var usesDesktopLayout
@Environment(\.windowControlsInset) private var windowControlsInset
@Environment(\.readableContentWidth) private var readableContentWidth
@Environment(\.showsPaneTitleBar) private var showsPaneTitleBar
@Environment(\.deviceType) private var deviceType
@Namespace private var searchTransition
Expand Down Expand Up @@ -351,8 +351,7 @@ private struct TodoListTopBar: View {
TodoListFilterHeader(store: store)
}
}
.frame(maxWidth: readableContentWidth)
.frame(maxWidth: .infinity)
.frame(maxWidth: usesDesktopLayout ? 600 * AdaptiveSize.boardScale : .infinity)
.padding(.top, showsPaneTitleBar ? 12 : windowControlsInset)
.padding(.bottom, 12)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ private struct PushNotificationListContent: View {
}
}
}
// 사이드바가 있으면 칸 가운데 목록 폭으로 모으고 스크롤 영역은 칸 전체 폭 유지
.frame(maxWidth: usesDesktopLayout ? 600 * AdaptiveSize.boardScale : .infinity)
.frame(maxWidth: .infinity)
}
.safeAreaInset(edge: .top, spacing: 0) {
let title = Text(String(localized: "nav_push_notifications", bundle: PresentationResources.bundle))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import PresentationShared
public struct ProfileView: View {
@Environment(\.usesDesktopLayout) private var usesDesktopLayout
@Environment(\.windowControlsInset) private var windowControlsInset
@Environment(\.readableContentWidth) private var readableContentWidth
@Environment(\.usesPaneLayout) private var usesPaneLayout
@Environment(\.deviceType) private var deviceType
@Environment(\.isiOSAppOnMac) private var isiOSAppOnMac
Expand Down Expand Up @@ -50,7 +49,8 @@ public struct ProfileView: View {
}
}
.padding(.bottom, 24)
.frame(maxWidth: readableContentWidth)
// 사이드바가 있으면 칸 가운데 목록 폭으로 모으고 스크롤 영역은 칸 전체 폭 유지
.frame(maxWidth: usesDesktopLayout ? 600 * AdaptiveSize.boardScale : .infinity)
.frame(maxWidth: .infinity)
}
.safeAreaInset(edge: .top, spacing: 0) { titleBar }
Expand Down Expand Up @@ -190,7 +190,6 @@ public struct ProfileView: View {
}
.padding(.leading, 16)
.padding(.trailing, 8)
.frame(maxWidth: readableContentWidth)
.padding(.top, windowControlsInset)
.padding(.bottom, 8)
.background(Color.background)
Expand Down
5 changes: 2 additions & 3 deletions Application/Presentation/TodayTab/Sources/TodayView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public struct TodayView: View {
@Environment(\.usesDesktopLayout) private var usesDesktopLayout
@Environment(\.usesPaneLayout) private var usesPaneLayout
@Environment(\.windowControlsInset) private var windowControlsInset
@Environment(\.readableContentWidth) private var readableContentWidth
@State private var store: StoreOf<TodayFeature>
private let isSelected: Bool
private let windowEvent: TodoEditorWindowEvent
Expand Down Expand Up @@ -92,7 +91,8 @@ public struct TodayView: View {
}
}
.padding(.top, 4 * AdaptiveSize.boardScale)
.frame(maxWidth: readableContentWidth)
// 사이드바가 있으면 칸 가운데 목록 폭으로 모으고 스크롤 영역은 칸 전체 폭 유지
.frame(maxWidth: usesDesktopLayout ? 600 * AdaptiveSize.boardScale : .infinity)
.frame(maxWidth: .infinity)
}
.safeAreaInset(edge: .top, spacing: 0) {
Expand All @@ -113,7 +113,6 @@ public struct TodayView: View {
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.horizontal)
.frame(maxWidth: readableContentWidth)
.padding(.top, windowControlsInset)
.padding(.bottom, 12)
}
Expand Down