From 5f1135036dc2dad205eb69a09c18f9e52478e824 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 8 Oct 2026 12:27:09 +0000 Subject: [PATCH] app: align search fields with app grids On wide windows the DenyList and Grant search fields were centered within their 720dp cap, while the app grid below them starts at the left edge. With few results the cards sat far left under an indented search field. Keep the 720dp cap, which is the M3 search bar maximum, but align the field to the start so it lines up with the grid and the top app bar title. Compact windows are unchanged since the field fills the width. Assisted-by: Claude Opus 5.5 --- .../src/main/java/com/topjohnwu/magisk/ui/deny/DenyListScreen.kt | 1 - .../com/topjohnwu/magisk/ui/superuser/SuperuserGrantScreen.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/app/apk/src/main/java/com/topjohnwu/magisk/ui/deny/DenyListScreen.kt b/app/apk/src/main/java/com/topjohnwu/magisk/ui/deny/DenyListScreen.kt index 5372bc947..d000727bd 100644 --- a/app/apk/src/main/java/com/topjohnwu/magisk/ui/deny/DenyListScreen.kt +++ b/app/apk/src/main/java/com/topjohnwu/magisk/ui/deny/DenyListScreen.kt @@ -201,7 +201,6 @@ fun DenyListScreen( query = query, onQueryChange = viewModel::setQuery, modifier = Modifier - .align(Alignment.CenterHorizontally) .widthIn(max = 720.dp) .fillMaxWidth() .padding(horizontal = 16.dp, vertical = 6.dp) diff --git a/app/apk/src/main/java/com/topjohnwu/magisk/ui/superuser/SuperuserGrantScreen.kt b/app/apk/src/main/java/com/topjohnwu/magisk/ui/superuser/SuperuserGrantScreen.kt index d3f5516ab..445f26200 100644 --- a/app/apk/src/main/java/com/topjohnwu/magisk/ui/superuser/SuperuserGrantScreen.kt +++ b/app/apk/src/main/java/com/topjohnwu/magisk/ui/superuser/SuperuserGrantScreen.kt @@ -176,7 +176,6 @@ fun SuperuserGrantScreen( query = query, onQueryChange = viewModel::setQuery, modifier = Modifier - .align(Alignment.CenterHorizontally) .widthIn(max = 720.dp) .fillMaxWidth() .padding(horizontal = 16.dp, vertical = 6.dp)