Skip to content

Commit 330f667

Browse files
committed
[UI/#182] 확인하지 않은 운세 빨간 점 표시 위치 수정
1 parent a513ab5 commit 330f667

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

feature/home/src/main/java/com/yapp/home/HomeScreen.kt

+18-7
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,7 @@ private fun HomeTopBar(
399399
Spacer(modifier = Modifier.weight(1f))
400400

401401
Box {
402-
Box(
403-
contentAlignment = Alignment.BottomEnd,
404-
) {
402+
Box(contentAlignment = Alignment.BottomEnd) {
405403
Box(
406404
modifier = Modifier
407405
.size(32.dp)
@@ -421,14 +419,14 @@ private fun HomeTopBar(
421419
if (hasNewFortune) {
422420
Spacer(
423421
modifier = Modifier
422+
.padding(
423+
end = 4.dp,
424+
bottom = 6.dp,
425+
)
424426
.size(7.dp)
425427
.background(
426428
color = OrbitTheme.colors.alert,
427429
shape = CircleShape,
428-
)
429-
.padding(
430-
end = 4.dp,
431-
bottom = 6.dp,
432430
),
433431
)
434432
}
@@ -814,3 +812,16 @@ fun HomeScreenPreview() {
814812
)
815813
}
816814
}
815+
816+
@Preview
817+
@Composable
818+
fun HomeTopBarPreview() {
819+
OrbitTheme {
820+
HomeTopBar(
821+
onSettingClick = {},
822+
onMailClick = {},
823+
hasNewFortune = true,
824+
isShowTooltip = true,
825+
)
826+
}
827+
}

0 commit comments

Comments
 (0)