mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 02:25:21 +00:00
header fix
This commit is contained in:
@@ -75,7 +75,7 @@ fun ChatScreen(viewModel: ChatViewModel) {
|
|||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
.background(colorScheme.background) // Extend background to fill entire screen including status bar
|
.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
|
// Main content area that responds to keyboard/window insets
|
||||||
Column(
|
Column(
|
||||||
@@ -188,6 +188,16 @@ fun ChatScreen(viewModel: ChatViewModel) {
|
|||||||
onLocationChannelsClick = { showLocationChannelsSheet = true }
|
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(
|
val alpha by animateFloatAsState(
|
||||||
targetValue = if (showSidebar) 0.5f else 0f,
|
targetValue = if (showSidebar) 0.5f else 0f,
|
||||||
animationSpec = tween(
|
animationSpec = tween(
|
||||||
|
|||||||
Reference in New Issue
Block a user