From f43469dd2f4c4eee192e793bf1ece99efcd389e9 Mon Sep 17 00:00:00 2001 From: eshc123 <> Date: Sun, 22 Dec 2024 15:46:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B3=B4=EB=93=9C=20=EC=BA=90=EB=A6=AD?= =?UTF-8?q?=ED=84=B0=20=EC=9D=B4=EB=A6=84=202=EC=A4=84=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../feature/board/component/Piece.kt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/feature/board/src/main/java/com/goalpanzi/mission_mate/feature/board/component/Piece.kt b/feature/board/src/main/java/com/goalpanzi/mission_mate/feature/board/component/Piece.kt index d37bf6f..6dfaffc 100644 --- a/feature/board/src/main/java/com/goalpanzi/mission_mate/feature/board/component/Piece.kt +++ b/feature/board/src/main/java/com/goalpanzi/mission_mate/feature/board/component/Piece.kt @@ -37,6 +37,7 @@ import androidx.compose.ui.draw.clip import androidx.compose.ui.geometry.Offset import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp import com.goalpanzi.mission_mate.core.designsystem.theme.ColorGray1_FF404249 @@ -216,7 +217,7 @@ fun PieceNameChip( .background( if (isMe) ColorOrange_FFFF5732 else ColorWhite_FFFFFFFF ) - .padding(horizontal = 8.5.dp, 0.85.dp), + .padding(horizontal = 0.5.dp, 0.85.dp), text = name, style = textStyle, color = if (isMe) ColorWhite_FFFFFFFF else ColorGray1_FF404249, @@ -252,3 +253,16 @@ fun PieceCountChip( } } + +@Preview +@Composable +private fun PieceNameChipPreview() { + Box( + modifier = Modifier.size(114.dp) + ){ + PieceNameChip( + name = "오락가락도락", + isMe = true + ) + } +}