Skip to content

Commit 1dcb456

Browse files
committed
chore(fc): hide avatars for tips in messages
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 33aa036 commit 1dcb456

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

ui/components/src/main/kotlin/com/getcode/ui/components/chat/messagecontents/MessageTextContent.kt

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -443,33 +443,33 @@ private fun Tips(
443443
vertical = CodeTheme.dimens.grid.x1,
444444
),
445445
verticalAlignment = Alignment.CenterVertically,
446-
horizontalArrangement = Arrangement.spacedBy(CodeTheme.dimens.grid.x1)
446+
// horizontalArrangement = Arrangement.spacedBy(CodeTheme.dimens.grid.x1)
447447
) {
448448
Text(
449449
text = stringResource(R.string.title_kinAmountWithLogo, totalTips),
450450
color = contentColor,
451451
style = CodeTheme.typography.caption,
452452
)
453453

454-
Row(
455-
verticalAlignment = Alignment.CenterVertically,
456-
horizontalArrangement = Arrangement.spacedBy((-8).dp)
457-
) {
458-
val imageModifier = Modifier
459-
.size(CodeTheme.dimens.staticGrid.x4)
460-
.clip(CircleShape)
461-
.border(CodeTheme.dimens.border, contentColor, CircleShape)
462-
463-
val tippers = remember(tips) { tips.map { it.tipper }.distinct() }
464-
465-
tippers.take(3).fastForEachIndexed { index, tipper ->
466-
UserAvatar(
467-
modifier = imageModifier
468-
.zIndex((tips.size - index).toFloat()),
469-
data = tipper.profileImage.nullIfEmpty() ?: tipper.id
470-
)
471-
}
472-
}
454+
// Row(
455+
// verticalAlignment = Alignment.CenterVertically,
456+
// horizontalArrangement = Arrangement.spacedBy((-8).dp)
457+
// ) {
458+
// val imageModifier = Modifier
459+
// .size(CodeTheme.dimens.staticGrid.x4)
460+
// .clip(CircleShape)
461+
// .border(CodeTheme.dimens.border, contentColor, CircleShape)
462+
//
463+
// val tippers = remember(tips) { tips.map { it.tipper }.distinct() }
464+
//
465+
// tippers.take(3).fastForEachIndexed { index, tipper ->
466+
// UserAvatar(
467+
// modifier = imageModifier
468+
// .zIndex((tips.size - index).toFloat()),
469+
// data = tipper.profileImage.nullIfEmpty() ?: tipper.id
470+
// )
471+
// }
472+
// }
473473
}
474474
}
475475
}

ui/components/src/main/kotlin/com/getcode/ui/components/picker/Picker.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ fun <T> Picker(
100100
snapshotFlow { listState.firstVisibleItemIndex to listState.layoutInfo.visibleItemsInfo.lastOrNull()?.index }
101101
.debounce(300.milliseconds)
102102
.map { (first, last) ->
103-
println("first=$first, last=$last")
104103
val index = ((first + (last ?: first)) / 2).coerceIn(1..items.lastIndex)
105104
getItem(index)
106105
}
@@ -111,7 +110,6 @@ fun <T> Picker(
111110
state.selectedItem = state.items.find { state.labelForItem(it) == item }
112111
}
113112
}.launchIn(this)
114-
115113
}
116114

117115
val textMeasurer = rememberTextMeasurer()

0 commit comments

Comments
 (0)