[skip ci]: Align superuser app spacing with module spacing (#132)

This commit is contained in:
lshwjgpt25
2025-06-02 13:31:41 +08:00
committed by GitHub
parent 04e1b9bf77
commit fe8b5f2135

View File

@@ -485,9 +485,12 @@ fun SuperUserScreen(navigator: DestinationsNavigator) {
.fillMaxSize() .fillMaxSize()
.nestedScroll(scrollBehavior.nestedScrollConnection), .nestedScroll(scrollBehavior.nestedScrollConnection),
contentPadding = PaddingValues( contentPadding = PaddingValues(
top = 8.dp, start = 16.dp,
end = 16.dp,
top = 16.dp,
bottom = 16.dp bottom = 16.dp
) ),
verticalArrangement = Arrangement.spacedBy(16.dp)
) { ) {
// 获取分组后的应用列表 // 获取分组后的应用列表
val rootApps = viewModel.appList.filter { it.allowSu } val rootApps = viewModel.appList.filter { it.allowSu }
@@ -649,8 +652,6 @@ private fun AppItem(
colors = getCardColors(MaterialTheme.colorScheme.surfaceContainerHigh), colors = getCardColors(MaterialTheme.colorScheme.surfaceContainerHigh),
elevation = getCardElevation(), elevation = getCardElevation(),
modifier = Modifier modifier = Modifier
.padding(horizontal = 24.dp)
.padding(vertical = 2.dp)
.pointerInput(Unit) { .pointerInput(Unit) {
detectTapGestures( detectTapGestures(
onLongPress = { onLongClick() }, onLongPress = { onLongClick() },