Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 26 additions & 5 deletions app/src/main/java/com/bitchat/android/ui/LocationNotesSheet.kt
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ fun LocationNotesSheet(
onDraftChange = { draft = it },
sendButtonEnabled = sendButtonEnabled,
accentGreen = accentGreen,
nickname = nickname,
onSend = {
val content = draft.trim()
if (content.isNotEmpty()) {
Expand Down Expand Up @@ -451,19 +452,38 @@ private fun LocationNotesInputSection(
onDraftChange: (String) -> Unit,
sendButtonEnabled: Boolean,
accentGreen: Color,
nickname: String?,
onSend: () -> Unit
) {
val isDark = isSystemInDarkTheme()
val colorScheme = MaterialTheme.colorScheme
Row(

Column(
modifier = Modifier
.fillMaxWidth()
.background(color = colorScheme.background)
.padding(horizontal = 12.dp, vertical = 8.dp), // Match main chat padding
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(8.dp) // Match main chat spacing
.padding(horizontal = 12.dp, vertical = 8.dp)
) {
if (nickname != null) {
Comment thread
AleksPlekhov marked this conversation as resolved.
Outdated
val baseName = nickname.split("#", limit = 2).firstOrNull() ?: nickname
Row(verticalAlignment = Alignment.CenterVertically) {
Text(
text = "@$baseName",
fontFamily = FontFamily.Monospace,
fontSize = 12.sp,
fontWeight = FontWeight.SemiBold,
color = colorScheme.onSurface
)
Spacer(modifier = Modifier.width(4.dp))
}
Spacer(modifier = Modifier.height(4.dp))
}

Row(
modifier = Modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(8.dp)
) {
// Text input with placeholder overlay (matches main chat exactly)
Box(
modifier = Modifier.weight(1f)
Expand Down Expand Up @@ -532,6 +552,7 @@ private fun LocationNotesInputSection(
}
}
}
}
}

/**
Expand Down