Skip to content

Commit 7330947

Browse files
committed
Reduced recent repostiories height and added relative pathing to the parent directory
1 parent 94b99eb commit 7330947

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/main/kotlin/com/jetpackduba/gitnuro/ui/WelcomePage.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)