feat: make pfp sticky in sidebar for ios consistency
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
cbf5e06898
commit
9ea8e0277d
|
|
@ -98,7 +98,7 @@ import chat.revolt.screens.chat.ChatRouterDestination
|
||||||
import chat.revolt.sheets.ChannelContextSheet
|
import chat.revolt.sheets.ChannelContextSheet
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class, ExperimentalFoundationApi::class)
|
||||||
@Composable
|
@Composable
|
||||||
fun ChannelSideDrawer(
|
fun ChannelSideDrawer(
|
||||||
currentServer: String?,
|
currentServer: String?,
|
||||||
|
|
@ -200,7 +200,7 @@ fun ChannelSideDrawer(
|
||||||
bottom = WindowInsets.navigationBars.asPaddingValues().calculateBottomPadding()
|
bottom = WindowInsets.navigationBars.asPaddingValues().calculateBottomPadding()
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
item(key = "self") {
|
stickyHeader(key = "self") {
|
||||||
UserAvatar(
|
UserAvatar(
|
||||||
username = RevoltAPI.userCache[RevoltAPI.selfId]?.let {
|
username = RevoltAPI.userCache[RevoltAPI.selfId]?.let {
|
||||||
User.resolveDefaultName(
|
User.resolveDefaultName(
|
||||||
|
|
@ -221,6 +221,7 @@ fun ChannelSideDrawer(
|
||||||
},
|
},
|
||||||
onLongClick = onLongPressAvatar,
|
onLongClick = onLongPressAvatar,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
.background(MaterialTheme.colorScheme.background)
|
||||||
.padding(8.dp)
|
.padding(8.dp)
|
||||||
.size(48.dp)
|
.size(48.dp)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue