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 @@ -12,7 +12,6 @@ import PresentationShared
public struct RecordDetailView: View {
@Environment(\.dismiss) private var dismiss
@Environment(\.deviceType) private var deviceType
@Environment(\.isInDetailPanel) private var isInDetailPanel
@Environment(\.isiOSAppOnMac) private var isiOSAppOnMac
@Environment(\.readableContentWidth) private var readableContentWidth
@Environment(\.usesDesktopLayout) private var usesDesktopLayout
Expand Down Expand Up @@ -92,22 +91,18 @@ public struct RecordDetailView: View {
}
}

@ViewBuilder
// Duo는 뒤로 버튼을 오른쪽 세로 막대에 표시
// 상세 판 안에서는 "개발 목표 / 기록" 경로의 판 막대로 표시
private var topBar: some View {
if isInDetailPanel {
// 상세 판 위쪽 막대에 "개발 목표 / 기록" 경로 표시
DetailPanelBar(location: Text(store.goalTitle), title: Text(panelTitle))
} else {
// Duo는 뒤로 버튼을 오른쪽 세로 막대에 표시
RecordTopBar(RecordPresentation.text("development_record_detail_title")) {
if deviceType != .duo {
NavigationBackButton(action: { dismiss() })
.disabled(store.isRestoring)
}
} trailing: {
EmptyView()
RecordTopBar(RecordPresentation.text("development_record_detail_title")) {
if deviceType != .duo {
NavigationBackButton(action: { dismiss() })
.disabled(store.isRestoring)
}
} trailing: {
EmptyView()
}
.detailPanel(location: Text(store.goalTitle), title: Text(panelTitle))
}

// 상세 판 경로에 표시하는 기록 제목, 작성 중인 기록은 작성 중인 제목
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import PresentationShared
struct RecordVersionDetailView: View {
@Environment(\.dismiss) private var dismiss
@Environment(\.deviceType) private var deviceType
@Environment(\.isInDetailPanel) private var isInDetailPanel
@Environment(\.isiOSAppOnMac) private var isiOSAppOnMac
@Environment(\.readableContentWidth) private var readableContentWidth

Expand Down Expand Up @@ -50,25 +49,21 @@ struct RecordVersionDetailView: View {
}
}

@ViewBuilder
// Duo는 뒤로 버튼을 오른쪽 세로 막대에 표시
// 상세 판 안에서는 "버전 이력 / 버전" 경로의 판 막대로 표시
private var topBar: some View {
if isInDetailPanel {
// 상세 판 위쪽 막대에 "버전 이력 / 버전" 경로 표시
DetailPanelBar(
location: Text(RecordPresentation.text("development_record_history_title")),
title: Text(RecordPresentation.versionLabel(version.number))
)
} else {
// Duo는 뒤로 버튼을 오른쪽 세로 막대에 표시
RecordTopBar(RecordPresentation.text("development_record_previous_version_title")) {
if deviceType != .duo {
NavigationBackButton(action: { dismiss() })
.disabled(store.isRestoring)
}
} trailing: {
EmptyView()
RecordTopBar(RecordPresentation.text("development_record_previous_version_title")) {
if deviceType != .duo {
NavigationBackButton(action: { dismiss() })
.disabled(store.isRestoring)
}
} trailing: {
EmptyView()
}
.detailPanel(
location: Text(RecordPresentation.text("development_record_history_title")),
title: Text(RecordPresentation.versionLabel(version.number))
)
}

// "이전 버전" 표시와 큰 제목, 버전·종류 배지, 날짜
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,57 @@
}
}
},
"detail_panel_text_copy" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Copy"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "복사하기"
}
}
}
},
"detail_panel_text_look_up" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Look Up"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "찾아보기"
}
}
}
},
"detail_panel_text_translate" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Translate"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "번역"
}
}
}
},
"detail_sidebar_empty" : {
"extractionState" : "manual",
"localizations" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,13 @@ private struct CompositionDetailModifier<Item: Identifiable, Detail: View, Panel
.hiddenInPane { !layout.usesDesktopLayout || layout.inPane }

narrowContent(content, item: narrowItem)
.detailPanel(item: panelItem, content: panel)
.modifier(
ProminentPresentation(item: panelItem) { item, isShown, dismiss in
DetailPanelFrame(isShown: isShown, dismiss: dismiss) {
panel(item)
}
}
)
// 가려진 탭에서도 상세 칸을 그대로 두도록 isActive와 상관없이 올림
.transformPreference(PaneDetailContentPreferenceKey.self) { value in
guard inPane, value == nil, item.wrappedValue != nil || emptyPane else { return }
Expand Down
Loading