Skip to content

Commit a13de45

Browse files
committed
[UI/#188] Hold To Delete 시 AlarmListItem의 불필요한 패딩 삭제
1 parent 451b92f commit a13de45

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

feature/home/src/main/java/com/yapp/alarm/component/AlarmListItem.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ internal fun AlarmListItem(
153153
},
154154
) {
155155
Row(
156-
modifier = modifier
156+
modifier = Modifier
157157
.fillMaxWidth()
158158
.background(
159159
if (selected) OrbitTheme.colors.gray_800 else OrbitTheme.colors.gray_900,

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

+25
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import androidx.compose.ui.platform.LocalDensity
5757
import androidx.compose.ui.res.painterResource
5858
import androidx.compose.ui.res.stringResource
5959
import androidx.compose.ui.text.style.TextAlign
60+
import androidx.compose.ui.tooling.preview.Preview
6061
import androidx.compose.ui.unit.Dp
6162
import androidx.compose.ui.unit.IntOffset
6263
import androidx.compose.ui.unit.dp
@@ -907,3 +908,27 @@ private fun AlarmWithMenu(
907908
}
908909
}
909910
}
911+
912+
@Preview(
913+
showBackground = true,
914+
backgroundColor = 0xFF000000,
915+
)
916+
@Composable
917+
fun HomeScreenPreview() {
918+
OrbitTheme {
919+
HomeScreen(
920+
stateProvider = {
921+
HomeContract.State()
922+
.copy(
923+
initialLoading = false,
924+
alarms = listOf(
925+
Alarm(),
926+
),
927+
activeItemMenu = 0L,
928+
activeItemMenuPosition = Pair(0f, 0f),
929+
)
930+
},
931+
eventDispatcher = {},
932+
)
933+
}
934+
}

0 commit comments

Comments
 (0)