mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
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:
+3
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user