From 4992aa9c526ed854958f48e2bc8448e8fa1aadd4 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 21 Nov 2023 20:06:29 +0100 Subject: [PATCH] feat: Increase the amount of information in link previews (#275) Show up to two lines of the link's title and three lines of the link's description in link preview cards. This provides additional useful context to the user, especially when many links bury the important information at the end of the title. --- app/src/main/res/layout/preview_card.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/layout/preview_card.xml b/app/src/main/res/layout/preview_card.xml index bc8a02c59..85457147d 100644 --- a/app/src/main/res/layout/preview_card.xml +++ b/app/src/main/res/layout/preview_card.xml @@ -53,7 +53,7 @@ android:layout_marginBottom="4dp" android:ellipsize="end" android:fontFamily="sans-serif-medium" - android:lines="1" + android:maxLines="2" android:textColor="?android:textColorSecondary" android:textSize="?attr/status_text_medium" tools:ignore="SelectableText" /> @@ -65,7 +65,7 @@ android:layout_marginBottom="4dp" android:ellipsize="end" android:lineSpacingMultiplier="1.1" - android:maxLines="2" + android:maxLines="3" android:textColor="?android:textColorSecondary" android:textSize="?attr/status_text_medium" tools:ignore="SelectableText" />