From 85a61839bcd7e885a5db561f919c6b79f6cbda1e Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 10 Sep 2024 14:23:39 +0200 Subject: [PATCH] Fixed display issue with files in chat bubbles on small screens --- app/src/main/res/layout/chat_bubble_content_grid_cell.xml | 7 +++---- app/src/main/res/values/dimen.xml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/layout/chat_bubble_content_grid_cell.xml b/app/src/main/res/layout/chat_bubble_content_grid_cell.xml index ff46732d8..2c78204fd 100644 --- a/app/src/main/res/layout/chat_bubble_content_grid_cell.xml +++ b/app/src/main/res/layout/chat_bubble_content_grid_cell.xml @@ -117,20 +117,19 @@ android:id="@+id/file_background" android:onClick="@{() -> model.onClick()}" android:onLongClick="@{onLongClickListener}" - android:layout_width="0dp" + android:layout_width="@dimen/chat_bubble_grid_file_width" android:layout_height="0dp" android:background="@drawable/shape_squircle_white_right" app:layout_constraintTop_toTopOf="@id/file_icon" app:layout_constraintBottom_toBottomOf="@id/file_icon" - app:layout_constraintStart_toEndOf="@id/file_icon" - app:layout_constraintEnd_toEndOf="parent"/> + app:layout_constraintStart_toEndOf="@id/file_icon"/> 30sp 87dp 150dp - 151dp + 150dp 271dp 271dp 271dp