From 3a7afa9d08dcb5aaff35fbe5d47ba9f41269ee71 Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Fri, 24 Sep 2021 21:32:56 +0200 Subject: [PATCH] Fixed corners in ComitChanges message --- src/main/kotlin/CommitChanges.kt | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/main/kotlin/CommitChanges.kt b/src/main/kotlin/CommitChanges.kt index 677f6c3..a38a75a 100644 --- a/src/main/kotlin/CommitChanges.kt +++ b/src/main/kotlin/CommitChanges.kt @@ -8,6 +8,7 @@ import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip +import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.ImageBitmap import androidx.compose.ui.graphics.asImageBitmap import androidx.compose.ui.res.useResource @@ -45,18 +46,21 @@ fun CommitChanges(commitDiff: Pair>, onDiffSelected: .fillMaxWidth(), ) { val scroll = rememberScrollState(0) - Card (modifier = Modifier - .fillMaxWidth() - .height(120.dp) - .padding(8.dp) - .background(MaterialTheme.colors.surface)) { - Text( - text = commit.fullMessage, - modifier = Modifier - .fillMaxSize() - .verticalScroll(scroll), - - ) + Card( + modifier = Modifier + .padding(8.dp) + .fillMaxWidth() + .height(120.dp) + ) { + Box { + Text( + text = commit.fullMessage, + modifier = Modifier + .fillMaxSize() + .padding(8.dp) + .verticalScroll(scroll), + ) + } }