From 096f4128b246464dd252eb73f5fca15479289e00 Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Sat, 22 Oct 2022 01:15:54 +0200 Subject: [PATCH] Fixed filename being cut in uncommited/commit changes --- src/main/kotlin/com/jetpackduba/gitnuro/ui/CommitChanges.kt | 1 - .../kotlin/com/jetpackduba/gitnuro/ui/UncommitedChanges.kt | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/ui/CommitChanges.kt b/src/main/kotlin/com/jetpackduba/gitnuro/ui/CommitChanges.kt index 810f19c..5134caa 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/ui/CommitChanges.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/ui/CommitChanges.kt @@ -290,7 +290,6 @@ fun CommitLogChanges( } Text( text = diffEntry.fileName, - modifier = Modifier.weight(1f, fill = false), maxLines = 1, softWrap = false, style = MaterialTheme.typography.body2, diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/ui/UncommitedChanges.kt b/src/main/kotlin/com/jetpackduba/gitnuro/ui/UncommitedChanges.kt index 55f2ce9..ac941f8 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/ui/UncommitedChanges.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/ui/UncommitedChanges.kt @@ -560,10 +560,6 @@ private fun EntriesList( } } -@OptIn( - ExperimentalComposeUiApi::class, ExperimentalFoundationApi::class, - ExperimentalAnimationApi::class -) @Composable private fun FileEntry( statusEntry: StatusEntry, @@ -618,7 +614,6 @@ private fun FileEntry( } Text( text = statusEntry.fileName, - modifier = Modifier.weight(1f, fill = false), maxLines = 1, softWrap = false, style = MaterialTheme.typography.body2,