mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user