mirror of https://github.com/openclaw/openclaw.git
fix(android): clip CommandBlock accent bar to rounded container bounds
This commit is contained in:
parent
93e7fcaa73
commit
402f2556b9
|
|
@ -68,6 +68,7 @@ import androidx.compose.runtime.remember
|
|||
import androidx.compose.runtime.saveable.rememberSaveable
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Brush
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
|
@ -1571,10 +1572,12 @@ private fun CommandBlock(command: String) {
|
|||
modifier =
|
||||
Modifier
|
||||
.fillMaxWidth()
|
||||
.background(onboardingCommandBg, RoundedCornerShape(12.dp))
|
||||
.height(IntrinsicSize.Min)
|
||||
.clip(RoundedCornerShape(12.dp))
|
||||
.background(onboardingCommandBg)
|
||||
.border(width = 1.dp, color = onboardingCommandBorder, shape = RoundedCornerShape(12.dp)),
|
||||
) {
|
||||
Box(modifier = Modifier.width(3.dp).height(42.dp).background(onboardingCommandAccent))
|
||||
Box(modifier = Modifier.width(3.dp).fillMaxHeight().background(onboardingCommandAccent))
|
||||
Text(
|
||||
command,
|
||||
modifier = Modifier.padding(horizontal = 12.dp, vertical = 10.dp),
|
||||
|
|
|
|||
Loading…
Reference in New Issue