From b42800b8867dcc53f42b15d5476d94d0b54e477a Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 23 Aug 2025 02:27:23 +0200 Subject: [PATCH] header fix --- .../main/java/com/bitchat/android/ui/ChatScreen.kt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/bitchat/android/ui/ChatScreen.kt b/app/src/main/java/com/bitchat/android/ui/ChatScreen.kt index f9e5d4b4..76d6f17d 100644 --- a/app/src/main/java/com/bitchat/android/ui/ChatScreen.kt +++ b/app/src/main/java/com/bitchat/android/ui/ChatScreen.kt @@ -75,7 +75,7 @@ fun ChatScreen(viewModel: ChatViewModel) { .fillMaxSize() .background(colorScheme.background) // Extend background to fill entire screen including status bar ) { - val headerHeight = 32.dp + val headerHeight = 42.dp // Main content area that responds to keyboard/window insets Column( @@ -188,6 +188,16 @@ fun ChatScreen(viewModel: ChatViewModel) { onLocationChannelsClick = { showLocationChannelsSheet = true } ) + // Divider under header - positioned after status bar + header height + HorizontalDivider( + modifier = Modifier + .fillMaxWidth() + .windowInsetsPadding(WindowInsets.statusBars) + .offset(y = headerHeight) + .zIndex(1f), + color = colorScheme.outline.copy(alpha = 0.3f) + ) + val alpha by animateFloatAsState( targetValue = if (showSidebar) 0.5f else 0f, animationSpec = tween(