From c0125e66223966a3d9c3e906dc96a11ce4b04b88 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Wed, 29 Apr 2026 14:45:42 +0000 Subject: [PATCH] android: fix connect banner card layout (wip) (#6922) --- .../kotlin/chat/simplex/common/views/chatlist/ChatListView.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt index 93513f9edb..01dcd021f7 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt @@ -351,7 +351,7 @@ private fun ConnectBannerCard() { painterResource(if (isDark) MR.images.banner_create_link_light else MR.images.banner_create_link), contentDescription = null, contentScale = ContentScale.FillWidth, - modifier = Modifier.fillMaxWidth() + modifier = Modifier.fillMaxWidth().aspectRatio(BANNER_IMAGE_RATIO) ) } else { BannerGradientBox(isDark) { @@ -382,7 +382,7 @@ private fun ConnectBannerCard() { painterResource(if (isDark) MR.images.banner_paste_link_light else MR.images.banner_paste_link), contentDescription = null, contentScale = ContentScale.FillWidth, - modifier = Modifier.fillMaxWidth() + modifier = Modifier.fillMaxWidth().aspectRatio(BANNER_IMAGE_RATIO) ) } else { BannerGradientBox(isDark) {