Skip to content

Commit 402f255

Browse files
committed
fix(android): clip CommandBlock accent bar to rounded container bounds
1 parent 93e7fca commit 402f255

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

apps/android/app/src/main/java/ai/openclaw/app/ui/OnboardingFlow.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ import androidx.compose.runtime.remember
6868
import androidx.compose.runtime.saveable.rememberSaveable
6969
import androidx.compose.runtime.setValue
7070
import androidx.compose.ui.Alignment
71+
import androidx.compose.ui.draw.clip
7172
import androidx.compose.ui.Modifier
7273
import androidx.compose.ui.graphics.Brush
7374
import androidx.compose.ui.graphics.Color
@@ -1571,10 +1572,12 @@ private fun CommandBlock(command: String) {
15711572
modifier =
15721573
Modifier
15731574
.fillMaxWidth()
1574-
.background(onboardingCommandBg, RoundedCornerShape(12.dp))
1575+
.height(IntrinsicSize.Min)
1576+
.clip(RoundedCornerShape(12.dp))
1577+
.background(onboardingCommandBg)
15751578
.border(width = 1.dp, color = onboardingCommandBorder, shape = RoundedCornerShape(12.dp)),
15761579
) {
1577-
Box(modifier = Modifier.width(3.dp).height(42.dp).background(onboardingCommandAccent))
1580+
Box(modifier = Modifier.width(3.dp).fillMaxHeight().background(onboardingCommandAccent))
15781581
Text(
15791582
command,
15801583
modifier = Modifier.padding(horizontal = 12.dp, vertical = 10.dp),

0 commit comments

Comments
 (0)