Skip to content

Commit e37910d

Browse files
authored
Merge pull request #674 from ESTiOSAI/refactor/report-section-view-jh
대시보드 커뮤니티 분위기 - AI generate 문구와 컨텐츠 내용에 생기는 여백 해결
2 parents ae083c5 + fcc29ee commit e37910d

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

AIProject/iCo/Features/Base/ReportSectionView.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct ReportSectionView<Value, Trailing: View, Content: View>: View {
6565
}
6666

6767
var body: some View {
68-
VStack(alignment: .leading, spacing: 16) {
68+
VStack(alignment: .leading, spacing: 8) {
6969
// Header
7070
HStack {
7171
Image(systemName: data.icon)
@@ -91,6 +91,13 @@ struct ReportSectionView<Value, Trailing: View, Content: View>: View {
9191
data.onCancel()
9292
}
9393
case .success(let value):
94+
if !(Trailing.self == EmptyView.self) {
95+
Text(String.aiGeneratedContentNotice)
96+
.font(.ico11)
97+
.foregroundStyle(.iCoNeutral)
98+
.lineSpacing(5)
99+
}
100+
94101
content(value)
95102
.font(.ico14)
96103
.foregroundStyle(.iCoLabel)
@@ -102,6 +109,7 @@ struct ReportSectionView<Value, Trailing: View, Content: View>: View {
102109
TimestampWithRefreshButtonView(timestamp: ts) {
103110
data.onRetry()
104111
}
112+
.padding(.top, 2)
105113
}
106114
case .cancel(let error):
107115
DefaultProgressView(status: .cancel, message: error.localizedDescription) {

AIProject/iCo/Features/Dashboard/View/AIBriefingView.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ struct AIBriefingView: View {
6565
.foregroundStyle($0.sentiment.color(for: themeManager.selectedTheme))
6666
},
6767
content: {
68-
Text(String.aiGeneratedContentNotice)
69-
.font(.ico11)
70-
.foregroundStyle(.iCoNeutral)
71-
.lineSpacing(5)
72-
7368
Text($0.summary.byCharWrapping)
7469
}
7570
)

0 commit comments

Comments
 (0)