Fix top padding in room list when app is opened in offline mode (#1299)
* Fix top padding in room list when app is opened in offline mode * Fix `avatarBloom` not passing the `bottomSoftEdgeColor` to `bloom`
This commit is contained in:
parent
49c723e3b2
commit
4bf439d5ec
3 changed files with 5 additions and 1 deletions
1
changelog.d/1297.bugfix
Normal file
1
changelog.d/1297.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fix top padding in room list when app is opened in offline mode.
|
||||
|
|
@ -109,7 +109,9 @@ fun ConnectivityIndicatorContainer(
|
|||
} else {
|
||||
WindowInsets.statusBars.asPaddingValues().calculateTopPadding() + 6.dp
|
||||
}
|
||||
val target = remember(isOnline) { if (isOnline) 0.dp else statusBarTopPadding }
|
||||
val target = remember(isIndicatorVisible.targetState, statusBarTopPadding) {
|
||||
if (!isIndicatorVisible.targetState) 0.dp else statusBarTopPadding
|
||||
}
|
||||
val animationStateOffset by animateDpAsState(
|
||||
targetValue = target,
|
||||
animationSpec = spring(
|
||||
|
|
|
|||
|
|
@ -363,6 +363,7 @@ fun Modifier.avatarBloom(
|
|||
blurSize = blurSize,
|
||||
offset = offset,
|
||||
clipToSize = clipToSize,
|
||||
bottomSoftEdgeColor = bottomSoftEdgeColor,
|
||||
bottomSoftEdgeHeight = bottomSoftEdgeHeight,
|
||||
bottomSoftEdgeAlpha = bottomSoftEdgeAlpha,
|
||||
alpha = alpha,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue