File tree 1 file changed +18
-7
lines changed
feature/home/src/main/java/com/yapp/home
1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -399,9 +399,7 @@ private fun HomeTopBar(
399
399
Spacer (modifier = Modifier .weight(1f ))
400
400
401
401
Box {
402
- Box (
403
- contentAlignment = Alignment .BottomEnd ,
404
- ) {
402
+ Box (contentAlignment = Alignment .BottomEnd ) {
405
403
Box (
406
404
modifier = Modifier
407
405
.size(32 .dp)
@@ -421,14 +419,14 @@ private fun HomeTopBar(
421
419
if (hasNewFortune) {
422
420
Spacer (
423
421
modifier = Modifier
422
+ .padding(
423
+ end = 4 .dp,
424
+ bottom = 6 .dp,
425
+ )
424
426
.size(7 .dp)
425
427
.background(
426
428
color = OrbitTheme .colors.alert,
427
429
shape = CircleShape ,
428
- )
429
- .padding(
430
- end = 4 .dp,
431
- bottom = 6 .dp,
432
430
),
433
431
)
434
432
}
@@ -814,3 +812,16 @@ fun HomeScreenPreview() {
814
812
)
815
813
}
816
814
}
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
+ }
You can’t perform that action at this time.
0 commit comments