Skip to content

Commit

Permalink
Fix some touch regions
Browse files Browse the repository at this point in the history
Change-Id: I0355737aac85653f1c37fa6d81fd9ac70d322e8f
  • Loading branch information
SpiritCroc committed Dec 30, 2024
1 parent f4afb06 commit b72d363
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,10 @@ fun UrlPreviewView(
maxLines = if (expanded) 50 else 2,
overflow = TextOverflow.Ellipsis,
modifier = Modifier
.padding(horizontal = 4.dp)
.thenIf(urlPreview.imageUrl != null || urlPreview.title != null || urlPreview.siteName != null) { padding(top = 4.dp) }
.clickable { expanded = !expanded },
.clip(RoundedCornerShape(4.dp))
.clickable { expanded = !expanded }
.padding(horizontal = 4.dp),
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ fun ScPrefCategoryCollapsed.Rendered(
Row(
modifier = Modifier
.fillMaxWidth()
.padding(16.dp)
.clickable {
onChange(!expanded)
},
}
.padding(16.dp),
horizontalArrangement = Arrangement.spacedBy(8.dp)
) {
Text(
Expand Down

0 comments on commit b72d363

Please sign in to comment.