Skip to content

Commit 6e9195b

Browse files
committed
[refactor]: 피드 자세히보기 태그 깨짐 수정 (#127)
1 parent c6bef99 commit 6e9195b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/src/main/java/com/texthip/thip/ui/feed/screen/FeedCommentScreen.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import androidx.compose.foundation.gestures.detectTapGestures
99
import androidx.compose.foundation.layout.Arrangement
1010
import androidx.compose.foundation.layout.Box
1111
import androidx.compose.foundation.layout.Column
12+
import androidx.compose.foundation.layout.ExperimentalLayoutApi
13+
import androidx.compose.foundation.layout.FlowRow
1214
import androidx.compose.foundation.layout.PaddingValues
1315
import androidx.compose.foundation.layout.Row
1416
import androidx.compose.foundation.layout.Spacer
@@ -145,6 +147,7 @@ fun FeedCommentScreen(
145147
)
146148
}
147149

150+
@OptIn(ExperimentalLayoutApi::class)
148151
@Composable
149152
private fun FeedCommentContent(
150153
modifier: Modifier = Modifier,
@@ -330,11 +333,13 @@ private fun FeedCommentContent(
330333
}
331334
}
332335
if (feedDetail.tagList.isNotEmpty()) {
333-
Row(
334-
Modifier
336+
FlowRow(
337+
modifier = Modifier
335338
.fillMaxWidth()
336339
.padding(bottom = 16.dp, start = 20.dp, end = 20.dp),
337-
horizontalArrangement = Arrangement.spacedBy(8.dp)
340+
horizontalArrangement = Arrangement.spacedBy(8.dp),
341+
verticalArrangement = Arrangement.spacedBy(8.dp),
342+
maxLines = 2 // 최대 2줄로 제한
338343
) {
339344
feedDetail.tagList.forEach { tag ->
340345
OptionChipButton(

0 commit comments

Comments
 (0)