From d2e18cb18df6fcf200120a71ccb9c64fccb794cc Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 17 Jul 2026 23:26:34 +0000 Subject: [PATCH] fix(media-servers): trim the gap above the first section header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first "Upload priority" header stacked FeedPadding's top inset, an extra 8dp, and SectionLabel's 20dp inter-section top padding — ~38dp of dead space under the top bar. Make SectionLabel's top padding a parameter and shrink it for the first section. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01GJ77Hm5L7fXEbPWbUds1iA --- .../ui/actions/mediaServers/AllMediaServersLIstView.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/mediaServers/AllMediaServersLIstView.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/mediaServers/AllMediaServersLIstView.kt index a37ccaf0b0..572f75fce1 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/mediaServers/AllMediaServersLIstView.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/mediaServers/AllMediaServersLIstView.kt @@ -116,7 +116,7 @@ fun AllMediaBody( SectionLabel( title = stringRes(id = R.string.media_servers_priority_section), caption = stringRes(id = R.string.media_servers_reorder_hint), - modifier = Modifier.padding(top = 8.dp), + topPadding = 4.dp, ) } @@ -172,9 +172,10 @@ fun AllMediaBody( private fun SectionLabel( title: String, caption: String? = null, + topPadding: Dp = 20.dp, modifier: Modifier = Modifier, ) { - Column(modifier = modifier.fillMaxWidth().padding(top = 20.dp, bottom = 8.dp)) { + Column(modifier = modifier.fillMaxWidth().padding(top = topPadding, bottom = 8.dp)) { Text( text = title, style = MaterialTheme.typography.titleSmall,