Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit d9a2bac

Browse files
committed
Remove unnecessary column
1 parent 47bffe2 commit d9a2bac

File tree

1 file changed

+28
-30
lines changed
  • homeUi/src/main/kotlin/com/gravatar/app/homeUi/presentation/home/share/components

1 file changed

+28
-30
lines changed

homeUi/src/main/kotlin/com/gravatar/app/homeUi/presentation/home/share/components/SharePublicRow.kt

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -25,39 +25,37 @@ internal fun SharePublicRow(
2525
modifier: Modifier = Modifier,
2626
singleLineValue: Boolean = true,
2727
) {
28-
Column {
29-
Row(
30-
verticalAlignment = Alignment.Top,
31-
horizontalArrangement = Arrangement.spacedBy(16.dp),
32-
modifier = modifier,
28+
Row(
29+
verticalAlignment = Alignment.Top,
30+
horizontalArrangement = Arrangement.spacedBy(16.dp),
31+
modifier = modifier,
32+
) {
33+
Column(
34+
modifier = Modifier
35+
.weight(1f)
36+
.padding(top = 8.dp)
3337
) {
34-
Column(
35-
modifier = Modifier
36-
.weight(1f)
37-
.padding(top = 8.dp)
38-
) {
39-
Text(
40-
text = label,
41-
style = MaterialTheme.typography.bodySmall,
42-
color = MaterialTheme.colorScheme.onSurfaceVariant.copy(
43-
alpha = 0.6f
44-
),
45-
modifier = Modifier.fillMaxWidth(),
46-
)
47-
Text(
48-
text = value,
49-
style = MaterialTheme.typography.bodyLarge,
50-
color = MaterialTheme.colorScheme.onSurface,
51-
maxLines = if (singleLineValue) 1 else Int.MAX_VALUE,
52-
overflow = if (singleLineValue) TextOverflow.Ellipsis else TextOverflow.Visible,
53-
modifier = Modifier.fillMaxWidth(),
54-
)
55-
}
56-
Switch(
57-
checked = checked,
58-
onCheckedChange = onCheckedChange,
38+
Text(
39+
text = label,
40+
style = MaterialTheme.typography.bodySmall,
41+
color = MaterialTheme.colorScheme.onSurfaceVariant.copy(
42+
alpha = 0.6f
43+
),
44+
modifier = Modifier.fillMaxWidth(),
45+
)
46+
Text(
47+
text = value,
48+
style = MaterialTheme.typography.bodyLarge,
49+
color = MaterialTheme.colorScheme.onSurface,
50+
maxLines = if (singleLineValue) 1 else Int.MAX_VALUE,
51+
overflow = if (singleLineValue) TextOverflow.Ellipsis else TextOverflow.Visible,
52+
modifier = Modifier.fillMaxWidth(),
5953
)
6054
}
55+
Switch(
56+
checked = checked,
57+
onCheckedChange = onCheckedChange,
58+
)
6159
}
6260
}
6361

0 commit comments

Comments
 (0)