mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3590 Vault | Space counters, turn off mentions (#2455)
This commit is contained in:
parent
cd938cd380
commit
10939ff549
1 changed files with 18 additions and 17 deletions
|
@ -370,23 +370,24 @@ fun VaultSpaceCard(
|
|||
.padding(end = 16.dp),
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
if (unreadMentionCount > 0) {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.background(
|
||||
color = colorResource(R.color.glyph_active),
|
||||
shape = CircleShape
|
||||
)
|
||||
.size(18.dp),
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
Image(
|
||||
painter = painterResource(R.drawable.ic_chat_widget_mention),
|
||||
contentDescription = null
|
||||
)
|
||||
}
|
||||
Spacer(modifier = Modifier.width(8.dp))
|
||||
}
|
||||
//todo: uncomment when mention counters are fixed
|
||||
// if (unreadMentionCount > 0) {
|
||||
// Box(
|
||||
// modifier = Modifier
|
||||
// .background(
|
||||
// color = colorResource(R.color.glyph_active),
|
||||
// shape = CircleShape
|
||||
// )
|
||||
// .size(18.dp),
|
||||
// contentAlignment = Alignment.Center
|
||||
// ) {
|
||||
// Image(
|
||||
// painter = painterResource(R.drawable.ic_chat_widget_mention),
|
||||
// contentDescription = null
|
||||
// )
|
||||
// }
|
||||
// Spacer(modifier = Modifier.width(8.dp))
|
||||
// }
|
||||
|
||||
if (unreadMessageCount > 0) {
|
||||
val shape = if (unreadMentionCount > 9) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue