fix(shift): align anchor date with cycle row and trim top padding
- 顶部内边距过高:Scaffold padding 已含 TopAppBar 间距, Column 去掉多余 vertical=8.dp,避免叠加 - 锚点日期右侧不齐:TextButton 自带内边距导致右边缘内缩, 改为 Text+clickable 与"周期"行纯 Text 结构一致,右侧对齐
This commit is contained in:
parent
c68944bd55
commit
62ed8bd09a
@ -1,5 +1,6 @@
|
||||
package plus.rua.project.ui
|
||||
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.ExperimentalLayoutApi
|
||||
@ -99,7 +100,7 @@ fun ShiftPatternScreen(onBack: () -> Unit) {
|
||||
.fillMaxSize()
|
||||
.padding(padding)
|
||||
.verticalScroll(rememberScrollState())
|
||||
.padding(horizontal = 16.dp, vertical = 8.dp),
|
||||
.padding(horizontal = 16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(16.dp)
|
||||
) {
|
||||
Text("基础周期", style = MaterialTheme.typography.titleSmall, fontWeight = FontWeight.SemiBold)
|
||||
@ -117,9 +118,12 @@ fun ShiftPatternScreen(onBack: () -> Unit) {
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
Text("锚点日期", style = MaterialTheme.typography.bodyMedium)
|
||||
TextButton(onClick = { showAnchorPicker = true }) {
|
||||
Text(pattern.anchorDate.toString())
|
||||
}
|
||||
Text(
|
||||
text = pattern.anchorDate.toString(),
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
color = MaterialTheme.colorScheme.primary,
|
||||
modifier = Modifier.clickable { showAnchorPicker = true }
|
||||
)
|
||||
}
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user