Skip to content

Commit

Permalink
Making icons larger, adding node keys
Browse files Browse the repository at this point in the history
- Fixes #336
- Fixes #337
  • Loading branch information
dessalines committed Feb 20, 2023
1 parent 23faeca commit fb6a692
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ fun LazyListScope.commentNodeItem(

val showMoreChildren = isExpanded(commentId) && node.children.isNullOrEmpty() && node
.commentView.counts.child_count > 0 && !isFlat
item {
item(key = commentId) {
var viewSource by remember { mutableStateOf(false) }

val backgroundColor = MaterialTheme.colorScheme.background
Expand Down Expand Up @@ -279,7 +279,7 @@ fun LazyListScope.commentNodeItem(
}

if (showMoreChildren) {
item {
item(key = "${commentId}_children") {
ShowMoreChildrenNode(node.depth, commentView, onFetchChildrenClick)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fun PostActivity(
modifier = Modifier.padding(padding)
.simpleVerticalScrollbar(listState)
) {
item {
item(key = "${postView.post.id}_listing") {
PostListing(
postView = postView,
onUpvoteClick = {
Expand Down Expand Up @@ -201,7 +201,7 @@ fun PostActivity(
postViewMode = PostViewMode.Card
)
}
item {
item(key = "${postView.post.id}_is_comment_view") {
if (postViewModel.isCommentView()) {
postViewModel.postView.value?.post?.id?.let { postId ->
ShowCommentContextButtons(
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/jerboa/ui/theme/Sizes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ val XL_PADDING = 16.dp
val XXL_PADDING = 20.dp
val XXXL_PADDING = 24.dp

val ICON_SIZE = 24.dp
val MEDIUM_ICON_SIZE = 48.dp
val ICON_SIZE = 36.dp
val MEDIUM_ICON_SIZE = 64.dp
val LARGER_ICON_SIZE = 80.dp
val DRAWER_BANNER_SIZE = 96.dp
val PROFILE_BANNER_SIZE = 128.dp
Expand Down

0 comments on commit fb6a692

Please sign in to comment.