From 33e5ed101d365a6650c77b2c182c03194388975a Mon Sep 17 00:00:00 2001 From: murjune Date: Wed, 30 Aug 2023 06:41:23 +0000 Subject: [PATCH] =?UTF-8?q?#310=20[fix]=20RepresentRuleList=20-=20Modifier?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../our_rules/component/represent/RepresentRuleList.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/hous/release/android/presentation/our_rules/component/represent/RepresentRuleList.kt b/app/src/main/java/hous/release/android/presentation/our_rules/component/represent/RepresentRuleList.kt index 0f5cc07c..b9b699b1 100644 --- a/app/src/main/java/hous/release/android/presentation/our_rules/component/represent/RepresentRuleList.kt +++ b/app/src/main/java/hous/release/android/presentation/our_rules/component/represent/RepresentRuleList.kt @@ -24,13 +24,14 @@ import hous.release.domain.entity.rule.Rule @Composable fun RepresentRuleList( + modifier: Modifier = Modifier, rules: List = emptyList(), onClick: (Int) -> Unit = {} ) { if (rules.isEmpty()) { RuleEmptyContent() } - LazyColumn { + LazyColumn(modifier = modifier) { itemsIndexed(rules, key = { _, rule -> rule.id }) { _, rule -> RepresentRuleItem(rule, onClick) } @@ -52,7 +53,7 @@ private fun RepresentRuleItem( onClick = { onClick(rule.id) }, indication = LocalIndication.current ) - .padding(start = 16.dp, top = 12.dp, bottom = 12.dp, end = 16.dp), + .padding(start = 24.dp, top = 12.dp, bottom = 12.dp, end = 16.dp), text = rule.name, isShowTrailingIcon = true, leadingIcon = { @@ -91,7 +92,7 @@ private fun Preview1() { } } } - RepresentRuleList(rules, onClick) + RepresentRuleList(rules = rules, onClick = onClick) } }