Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

보드 캐릭터 이름 2줄 처리 방지 #85

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
)
}
}