dm-115
This commit is contained in:
parent
b252b96dc2
commit
44071e2ff8
1 changed files with 5 additions and 2 deletions
|
|
@ -203,6 +203,7 @@ fun MessageMessaging(
|
||||||
|
|
||||||
Spacer(modifier = Modifier.height(20.dp))
|
Spacer(modifier = Modifier.height(20.dp))
|
||||||
|
|
||||||
|
val topBarShape = RoundedCornerShape(16.dp)
|
||||||
//topbar content
|
//topbar content
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|
@ -211,14 +212,16 @@ fun MessageMessaging(
|
||||||
rememberSharedContentState(key = "container_$roomId"),
|
rememberSharedContentState(key = "container_$roomId"),
|
||||||
animatedVisibilityScope = animatedVisibilityScope
|
animatedVisibilityScope = animatedVisibilityScope
|
||||||
)
|
)
|
||||||
|
.padding(6.dp)
|
||||||
|
.clip(topBarShape)
|
||||||
.background(
|
.background(
|
||||||
color = MaterialTheme.colorScheme.primary,
|
color = MaterialTheme.colorScheme.primary,
|
||||||
shape = RoundedCornerShape(0.dp)
|
shape = topBarShape // 👈 1. 背景改用圓角
|
||||||
)
|
)
|
||||||
.border(
|
.border(
|
||||||
width = 0.5.dp,
|
width = 0.5.dp,
|
||||||
color = Color.White.copy(alpha = 0.4f),
|
color = Color.White.copy(alpha = 0.4f),
|
||||||
shape = RoundedCornerShape(0.dp)
|
shape = topBarShape // 👈 2. 邊框也要用同一個圓角,才不會穿幫!
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
// 2. 改用 Column 將「狀態欄空間」與「實際內容」垂直排列
|
// 2. 改用 Column 將「狀態欄空間」與「實際內容」垂直排列
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue