Skip to content

Commit 0ae9bc4

Browse files
Corrected padding a bit
1 parent dbdd975 commit 0ae9bc4

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

src/main/kotlin/me/theentropyshard/sheet/view/chat/ChatMessage.kt

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ private fun MessageBody(
246246
}
247247

248248
Column(
249-
modifier = modifier,
250-
verticalArrangement = Arrangement.spacedBy(8.dp)
249+
modifier = modifier
251250
) {
252251
if (message.hasText()) {
253252
Text(
@@ -256,19 +255,26 @@ private fun MessageBody(
256255
)
257256
}
258257

258+
Spacer(modifier = Modifier.height(6.dp))
259+
259260
if (message.hasAttachments()) {
260-
for (attachment in message.files) {
261-
if (attachment.type.startsWith("image/")) {
262-
ImageAttachment(
263-
name = attachment.name,
264-
hash = attachment.hash,
265-
channelId = message.channelId
266-
)
261+
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
262+
for (attachment in message.files) {
263+
if (attachment.type.startsWith("image/")) {
264+
ImageAttachment(
265+
name = attachment.name,
266+
hash = attachment.hash,
267+
channelId = message.channelId
268+
)
267269

268-
// TODO: download image
269-
} else {
270-
FileAttachment(name = attachment.name, size = attachment.size) {
271-
// TODO: download file
270+
// TODO: download image
271+
} else {
272+
FileAttachment(
273+
name = attachment.name,
274+
size = attachment.size
275+
) {
276+
// TODO: download file
277+
}
272278
}
273279
}
274280
}

0 commit comments

Comments
 (0)