Skip to content

Commit

Permalink
Merge pull request #85 from Nexters/fix/piece-name
Browse files Browse the repository at this point in the history
보드 캐릭터 이름 2줄 처리 방지
  • Loading branch information
eshc123 authored Dec 22, 2024
2 parents 8cb77ec + f43469d commit 094b478
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -252,3 +253,16 @@ fun PieceCountChip(
}

}

@Preview
@Composable
private fun PieceNameChipPreview() {
Box(
modifier = Modifier.size(114.dp)
){
PieceNameChip(
name = "오락가락도락",
isMe = true
)
}
}

0 comments on commit 094b478

Please sign in to comment.