fix(ui): 移除聊天页顶栏登出按钮;抽屉内容避开系统栏

登出已收进侧边栏;抽屉面板保留全高背景,内容用 systemBars inset 避开状态栏/导航栏。
This commit is contained in:
AskaEth committed 2026-09-08 21:34:10 +08:00
1 parent e72621db94
commit 5d71c6a2ab
2 files changed
+6 -5

No files matched your search

@@ -37,7 +37,6 @@ import top.yukonga.miuix.kmp.basic.IconButton
import top.yukonga.miuix.kmp.basic.Scaffold
import top.yukonga.miuix.kmp.basic.SmallTopAppBar
import top.yukonga.miuix.kmp.basic.Text
import top.yukonga.miuix.kmp.basic.TextButton
import top.yukonga.miuix.kmp.basic.TextField
import top.yukonga.miuix.kmp.icon.MiuixIcons
import top.yukonga.miuix.kmp.icon.basic.Sidebar
@@ -103,9 +102,6 @@ fun ChatScreen(
Icon(imageVector = MiuixIcons.Basic.Sidebar, contentDescription = "菜单")
}
},
actions = {
TextButton("登出", onClick = onLogout)
},
)
},
bottomBar = {
@@ -12,10 +12,13 @@ import androidx.compose.foundation.gestures.rememberDraggableState
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.systemBars
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.derivedStateOf
@@ -198,7 +201,9 @@ fun MiuixDrawer(
y = 0,
)
}
.background(MiuixTheme.colorScheme.surface),
.background(MiuixTheme.colorScheme.surface)
// 面板铺满全高(背景仍到底),内容再避开状态栏 / 导航栏
.windowInsetsPadding(WindowInsets.systemBars),
) {
drawerContent()
}