Skip to content

Commit ab44cf6

Browse files
committed
Minor updates on the home screen
1 parent 214606f commit ab44cf6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

app/src/main/java/no/nordicsemi/memfault/home/HomeScreen.kt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import androidx.compose.foundation.layout.WindowInsets
4040
import androidx.compose.foundation.layout.WindowInsetsSides
4141
import androidx.compose.foundation.layout.displayCutout
4242
import androidx.compose.foundation.layout.fillMaxSize
43+
import androidx.compose.foundation.layout.fillMaxWidth
4344
import androidx.compose.foundation.layout.navigationBars
4445
import androidx.compose.foundation.layout.only
4546
import androidx.compose.foundation.layout.padding
@@ -123,7 +124,10 @@ private fun OnePane(
123124
) {
124125
Spacer(modifier = Modifier.weight(1f))
125126

126-
MemfaultLogo()
127+
MemfaultLogo(
128+
modifier = Modifier
129+
.fillMaxWidth(0.4f)
130+
)
127131

128132
Spacer(modifier = Modifier.weight(0.3f))
129133

@@ -148,11 +152,11 @@ private fun TwoPane(
148152
verticalAlignment = Alignment.CenterVertically
149153
) {
150154
MemfaultLogo(
151-
modifier = Modifier.weight(0.3f),
155+
modifier = Modifier
156+
.padding(horizontal = 16.dp)
157+
.weight(0.3f),
152158
)
153159

154-
Spacer(modifier = Modifier.size(16.dp))
155-
156160
Content(
157161
modifier = Modifier
158162
.weight(0.7f)
@@ -174,7 +178,7 @@ private fun MemfaultLogo(
174178
painter = painterResource(id = R.drawable.ic_memfault),
175179
contentDescription = stringResource(id = R.string.cd_memfault),
176180
contentScale = ContentScale.Fit,
177-
alignment = Alignment.TopEnd
181+
alignment = Alignment.Center
178182
)
179183
}
180184

0 commit comments

Comments
 (0)