fix(media-servers): trim the gap above the first section header

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GJ77Hm5L7fXEbPWbUds1iA
This commit is contained in:
Claude
2026-07-17 23:26:34 +00:00
parent a99fc59de8
commit d2e18cb18d
@@ -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,