Search's add row and home's upcoming rows follow the compact density (#118)
This commit is contained in:
1 parent
dd225e0a0e
commit
4d9d809f85
2 files changed
+4
-2
No files matched your search
@@ -126,6 +126,7 @@ import de.jeanlucmakiola.agendula.ui.common.priorityAccent
|
||||
import de.jeanlucmakiola.agendula.ui.tasklist.priorityLabel
|
||||
import de.jeanlucmakiola.floret.components.positionOf
|
||||
import de.jeanlucmakiola.floret.identity.FloretDensity
|
||||
import de.jeanlucmakiola.floret.identity.byDensity
|
||||
import de.jeanlucmakiola.floret.identity.reducibleSpec
|
||||
import de.jeanlucmakiola.floret.identity.rememberLoopingMotion
|
||||
import de.jeanlucmakiola.floret.identity.rememberReduceMotion
|
||||
@@ -1104,7 +1105,7 @@ private fun UpcomingRow(task: Task, onClick: () -> Unit) {
|
||||
val metaStyle = MaterialTheme.typography.bodySmall
|
||||
Surface(onClick = onClick, color = Color.Transparent, modifier = Modifier.fillMaxWidth()) {
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth().heightIn(min = 60.dp).padding(horizontal = 16.dp, vertical = 8.dp),
|
||||
modifier = Modifier.fillMaxWidth().heightIn(min = byDensity(60.dp, 52.dp)).padding(horizontal = 16.dp, vertical = FloretDensity.cardRowInset),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
horizontalArrangement = Arrangement.spacedBy(12.dp),
|
||||
) {
|
||||
|
||||
@@ -41,6 +41,7 @@ import de.jeanlucmakiola.floret.components.GroupedRow
|
||||
import de.jeanlucmakiola.floret.components.GroupedSectionHeader
|
||||
import de.jeanlucmakiola.floret.components.Position
|
||||
import de.jeanlucmakiola.floret.components.positionOf
|
||||
import de.jeanlucmakiola.floret.identity.FloretDensity
|
||||
|
||||
/** What submitting a search does: reopen the completed task of that title, or add a new one. */
|
||||
internal sealed interface SearchSubmit {
|
||||
@@ -128,7 +129,7 @@ internal fun TaskSearchResults(
|
||||
position = Position.Alone,
|
||||
dimmed = result.adding,
|
||||
leading = { Icon(Icons.Rounded.Add, contentDescription = null, tint = MaterialTheme.colorScheme.primary) },
|
||||
minHeight = 64.dp,
|
||||
minHeight = FloretDensity.cardRowHeight,
|
||||
onClick = if (result.adding) null else ({ onCreate(q) }),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user