Show the fourth row rather than a count of it

23c5836 · Gabriel Morell · 2026-09-02 20:41

11 files +4 -11
Message
{commit_body(@commit)}

Files changed

modified clients/android/app/src/main/java/io/neiam/apolloscrib/ui/BoardScreen.kt
+4 −11
@@ -218,17 +218,10 @@ private fun PreviewCard(preview: Preview) {
218 218 color = palette.dim
219 219 )
220 220 } else {
221 − // Three is what the Smartspace template shows; more
222 − // here would be a preview of something else.
223 − preview.rows.take(3).forEach { row -> BoardRow(row) }
224 − val extra = preview.rows.size - 3
225 − if (extra > 0) {
226 − Text(
227 − "+$extra more",
228 − style = MaterialTheme.typography.bodySmall,
229 − color = palette.dim
230 − )
231 − }
221 + // Every row, not the three a Smartspace card has room
222 + // for. This screen scrolls, and "+1 more" is a worse
223 + // use of a line than the thing it is counting.
224 + preview.rows.forEach { row -> BoardRow(row) }
232 225 }
233 226 }
234 227 }

Parents: 084c348