diff --git a/android/app/src/main/java/com/fabledsword/thoughtsync/ui/LinkPreviewRow.kt b/android/app/src/main/java/com/fabledsword/thoughtsync/ui/LinkPreviewRow.kt index 428afa8..8a5b9cc 100644 --- a/android/app/src/main/java/com/fabledsword/thoughtsync/ui/LinkPreviewRow.kt +++ b/android/app/src/main/java/com/fabledsword/thoughtsync/ui/LinkPreviewRow.kt @@ -70,17 +70,22 @@ fun LinkPreviewCard( compact: Boolean, modifier: Modifier = Modifier, ) { + // Every element of the Modifier chain stays on ONE line, which is why the shape + // and the two paddings are named first. `standard:chain-method-continuation` + // wants a `.` that follows a MULTILINE element glued to its closing paren — + // `).padding(…)` — which is unreadable, so the multiline element is avoided + // instead (Scribe #3110). + val shape = RoundedCornerShape(PREVIEW_RADIUS) + val padH = if (compact) 8.dp else 10.dp + val padV = if (compact) 6.dp else 8.dp + Column( modifier = modifier .fillMaxWidth() - .clip(RoundedCornerShape(PREVIEW_RADIUS)) - .border( - 1.dp, - MaterialTheme.colorScheme.outlineVariant, - RoundedCornerShape(PREVIEW_RADIUS), - ) - .padding(horizontal = if (compact) 8.dp else 10.dp, vertical = if (compact) 6.dp else 8.dp), + .clip(shape) + .border(1.dp, MaterialTheme.colorScheme.outlineVariant, shape) + .padding(horizontal = padH, vertical = padV), ) { preview.siteName?.takeIf { it.isNotBlank() }?.let { site -> Text(