From 8fdb15893ac0f847cc3083eb9938f6a513e02733 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Mon, 19 Feb 2024 22:59:04 +0100 Subject: [PATCH] fix: Improve legibility of stats labels for large font sizes (#457) If the user increases the font size the labels for post statistics (number of replies, etc) can crash in to each other. To give more space for the text: - Shrink the label font size - Move the labels slightly left / tighter to the icon - Allow the "bookmark" icon to move next to the "more" icon. There's still 48dp of space for them, and this gives a little more space to the other icons that have labels --- app/src/main/res/layout/item_status.xml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/layout/item_status.xml b/app/src/main/res/layout/item_status.xml index 8c3011922..e7a774a1b 100644 --- a/app/src/main/res/layout/item_status.xml +++ b/app/src/main/res/layout/item_status.xml @@ -248,8 +248,8 @@ android:id="@+id/status_replies" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="45dp" - android:textSize="?attr/status_text_medium" + android:layout_marginStart="40dp" + android:textSize="?attr/status_text_small" app:layout_constraintBottom_toBottomOf="@id/status_reply" app:layout_constraintStart_toStartOf="@id/status_reply" app:layout_constraintTop_toTopOf="@id/status_reply" @@ -276,8 +276,8 @@ android:id="@+id/status_reblogs_count" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="45dp" - android:textSize="?attr/status_text_medium" + android:layout_marginStart="40dp" + android:textSize="?attr/status_text_small" app:layout_constraintBottom_toBottomOf="@id/status_inset" app:layout_constraintStart_toStartOf="@id/status_inset" app:layout_constraintTop_toTopOf="@id/status_inset" @@ -304,12 +304,12 @@ android:id="@+id/status_favourites_count" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="45dp" - android:textSize="?attr/status_text_medium" + android:layout_marginStart="40dp" + android:textSize="?attr/status_text_small" app:layout_constraintBottom_toBottomOf="@id/status_inset" app:layout_constraintStart_toStartOf="@id/status_favourite" app:layout_constraintTop_toTopOf="@id/status_inset" - tools:text="" /> + tools:text="1+" />