File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/main/kotlin/com/jetpackduba/gitnuro/ui Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -457,8 +457,9 @@ fun RecentRepositoriesList(
457457 .padding(horizontal = 16 .dp, vertical = 8 .dp),
458458 verticalAlignment = Alignment .CenterVertically ,
459459 ) {
460- Column (
461- verticalArrangement = Arrangement .spacedBy(2 .dp, Alignment .CenterVertically ),
460+ Row (
461+ verticalAlignment = Alignment .CenterVertically ,
462+ horizontalArrangement = Arrangement .spacedBy(8 .dp),
462463 modifier = Modifier .weight(1f ),
463464 ) {
464465 Text (
@@ -471,7 +472,11 @@ fun RecentRepositoriesList(
471472 )
472473
473474 Text (
474- text = repoDirPath,
475+ text = if (repoDirPath.startsWith(System .getProperty(" user.home" ))) {
476+ " ~${repoDirPath.removePrefix(System .getProperty(" user.home" ))} "
477+ } else {
478+ repoDirPath
479+ },
475480 style = MaterialTheme .typography.body2,
476481 overflow = TextOverflow .Ellipsis ,
477482 modifier = Modifier ,
You can’t perform that action at this time.
0 commit comments