mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
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:
committed by
GitHub
parent
49c723e3b2
commit
4bf439d5ec
@@ -0,0 +1 @@
|
|||||||
|
Fix top padding in room list when app is opened in offline mode.
|
||||||
+3
-1
@@ -109,7 +109,9 @@ fun ConnectivityIndicatorContainer(
|
|||||||
} else {
|
} else {
|
||||||
WindowInsets.statusBars.asPaddingValues().calculateTopPadding() + 6.dp
|
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(
|
val animationStateOffset by animateDpAsState(
|
||||||
targetValue = target,
|
targetValue = target,
|
||||||
animationSpec = spring(
|
animationSpec = spring(
|
||||||
|
|||||||
+1
@@ -363,6 +363,7 @@ fun Modifier.avatarBloom(
|
|||||||
blurSize = blurSize,
|
blurSize = blurSize,
|
||||||
offset = offset,
|
offset = offset,
|
||||||
clipToSize = clipToSize,
|
clipToSize = clipToSize,
|
||||||
|
bottomSoftEdgeColor = bottomSoftEdgeColor,
|
||||||
bottomSoftEdgeHeight = bottomSoftEdgeHeight,
|
bottomSoftEdgeHeight = bottomSoftEdgeHeight,
|
||||||
bottomSoftEdgeAlpha = bottomSoftEdgeAlpha,
|
bottomSoftEdgeAlpha = bottomSoftEdgeAlpha,
|
||||||
alpha = alpha,
|
alpha = alpha,
|
||||||
|
|||||||
Reference in New Issue
Block a user