fix: Ensure suggested account information is not cut off (#1030)

Previous layout didn't constraint the metadata elements to the parent's
edge, so could run off the screen if the content was too long.

Constrain them so the content wraps correctly.

Fixes #876
This commit is contained in:
Nik Clayton 2024-10-19 14:20:51 +02:00 committed by GitHub
parent a43ebab69b
commit ffb585b349
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 5 deletions

View File

@ -128,23 +128,25 @@
<TextView <TextView
android:id="@+id/follows_count" android:id="@+id/follows_count"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textSize="?attr/status_text_small"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:importantForAccessibility="no" android:importantForAccessibility="no"
android:textSize="?attr/status_text_small"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/follower_count" app:layout_constraintStart_toEndOf="@id/follower_count"
app:layout_constraintTop_toBottomOf="@id/account_note" app:layout_constraintTop_toBottomOf="@id/account_note"
tools:text="46 follows" /> tools:text="46 follows" />
<TextView <TextView
android:id="@+id/statuses_count" android:id="@+id/statuses_count"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:textSize="?attr/status_text_small"
android:importantForAccessibility="no" android:importantForAccessibility="no"
android:textSize="?attr/status_text_small"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/follower_count" app:layout_constraintStart_toStartOf="@+id/follower_count"
app:layout_constraintTop_toBottomOf="@id/follower_count" app:layout_constraintTop_toBottomOf="@id/follower_count"
tools:text="46 posts (4.6 per week)" /> tools:text="46 posts (4.6 per week)" />