Fixed issue with media preview in chat bubble

This commit is contained in:
Sylvain Berfini 2024-11-28 15:20:46 +01:00
parent 4f0ca4adca
commit d312141eda
2 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="1dp">
android:padding="1dp">
<androidx.constraintlayout.widget.Group
android:id="@+id/file_group"
@ -94,9 +94,8 @@
android:id="@+id/left_background"
android:layout_width="@dimen/chat_bubble_grid_image_size"
android:layout_height="@dimen/chat_bubble_grid_image_size"
android:layout_marginTop="1dp"
android:layout_marginBottom="1dp"
android:background="@drawable/shape_squircle_main2_200_left"
android:visibility="@{model.isImage || model.isVideoPreview ? View.GONE : View.VISIBLE}"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
@ -172,7 +171,8 @@
android:background="@drawable/shape_squircle_white_right"
app:layout_constraintTop_toTopOf="@id/left_background"
app:layout_constraintBottom_toBottomOf="@id/left_background"
app:layout_constraintStart_toEndOf="@id/left_background"/>
app:layout_constraintStart_toEndOf="@id/left_background"
app:layout_constraintEnd_toEndOf="parent"/>
<androidx.appcompat.widget.AppCompatTextView
style="@style/default_text_style_700"

View file

@ -84,7 +84,7 @@
<dimen name="chat_bubble_long_press_emoji_reaction_size">25dp</dimen>
<dimen name="chat_bubble_grid_image_size">87dp</dimen>
<dimen name="chat_bubble_big_image_max_size">150dp</dimen>
<dimen name="chat_bubble_grid_file_width">152dp</dimen> <!-- 271 - 87 - 32 -->
<dimen name="chat_bubble_grid_file_width">178dp</dimen> <!-- (87 + 2) * 2 -->
<dimen name="chat_bubble_meeting_invite_width">271dp</dimen>
<dimen name="chat_bubble_voice_record_width">230dp</dimen>
<dimen name="chat_bubble_max_reply_width">271dp</dimen>