From e14ea0ac686defba4d9a0d46b92404fdaf44539d Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 29 Oct 2025 10:50:50 +0100 Subject: [PATCH] Fixed emoji reaction not visible when long pressing an image on a device with a small screen --- .../main/res/layout/chat_bubble_long_press_menu.xml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/layout/chat_bubble_long_press_menu.xml b/app/src/main/res/layout/chat_bubble_long_press_menu.xml index 01bcd9bcb..2fb5f209d 100644 --- a/app/src/main/res/layout/chat_bubble_long_press_menu.xml +++ b/app/src/main/res/layout/chat_bubble_long_press_menu.xml @@ -25,7 +25,7 @@ android:id="@+id/emojis" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginBottom="5dp" + android:layout_marginTop="10dp" android:layout_marginStart="10dp" android:layout_marginEnd="10dp" android:visibility="@{viewModel.isChatRoomReadOnly ? View.GONE : View.VISIBLE}" @@ -33,7 +33,10 @@ bind:model="@{viewModel.messageModel}" bind:pickEmojiClickListener="@{() -> viewModel.pickEmoji()}" app:layout_constraintHorizontal_bias="@{viewModel.horizontalBias, default=0}" + app:layout_constraintVertical_bias="1" app:layout_constraintWidth_max="@dimen/emoji_list_max_width" + app:layout_constraintVertical_chainStyle="packed" + app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toTopOf="@id/bubbles" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"/> @@ -45,8 +48,10 @@ android:layout_marginStart="10dp" android:layout_marginEnd="10dp" android:layout_marginBottom="5dp" + app:layout_constrainedHeight="true" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/emojis" app:layout_constraintBottom_toTopOf="@id/actions"> + app:layout_constraintEnd_toEndOf="parent"/> + app:layout_constraintEnd_toEndOf="parent"/>