@@ -65,13 +65,10 @@ struct DetailView: View {
65
65
. onAppear {
66
66
store. send ( intent: . getInitialValue( userId: Config . userId, postId: postId) )
67
67
68
- print ( " 1️⃣ \( store. state. successService) " )
69
- // 상태 확인 후 네비게이션 처리
70
68
if !store. state. successService {
71
69
navigationManager. pop ( 1 )
72
70
}
73
71
74
- print ( " 2️⃣ \( store. state. successService) " )
75
72
}
76
73
. onChange ( of: store. state. toast) { _, newValue in
77
74
toastMessage = newValue
@@ -182,7 +179,7 @@ extension DetailView {
182
179
chip: store. state. categoryColorResponse. toEntity ( )
183
180
)
184
181
185
- Text ( store. state. title. splitZeroWidthSpace ( ) )
182
+ Text ( store. state. title)
186
183
. customFont ( . title1b)
187
184
. foregroundStyle ( . black)
188
185
@@ -193,9 +190,16 @@ extension DetailView {
193
190
Spacer ( )
194
191
. frame ( height: 16 . adjustedH)
195
192
196
- Text ( store. state. description. splitZeroWidthSpace ( ) )
197
- . customFont ( . body2m)
198
- . foregroundStyle ( . gray900)
193
+ Text (
194
+ ( store. state. isScoop || store. state. isMine)
195
+ ? store. state. description. splitZeroWidthSpace ( )
196
+ : ( store. state. description. count > 120
197
+ ? " \( store. state. description. prefix ( 120 ) ) ... " . splitZeroWidthSpace ( )
198
+ : store. state. description. splitZeroWidthSpace ( ) )
199
+ )
200
+ . customFont ( . body2m)
201
+ . frame ( width: 335 . adjusted)
202
+ . foregroundStyle ( . black)
199
203
200
204
}
201
205
. padding ( EdgeInsets ( top: 0 , leading: 20 . adjusted, bottom: 32 . adjustedH, trailing: 20 . adjusted) )
@@ -377,5 +381,3 @@ struct Line: Shape {
377
381
return path
378
382
}
379
383
}
380
-
381
- //
0 commit comments