From de1cd864cf568c7613af62f31fe78e30d9419206 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Tue, 2 May 2023 13:05:42 +0200 Subject: [PATCH] Make autocompletion a bit more compact - Less standard emojis shown by default - Smaller section titles Change-Id: Ia79d7370253108a7866628013d8c4f89ba8327a3 --- .../features/autocomplete/emoji/AutocompleteEmojiController.kt | 2 +- vector/src/main/res/layout/item_autocomplete_emoji.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/autocomplete/emoji/AutocompleteEmojiController.kt b/vector/src/main/java/im/vector/app/features/autocomplete/emoji/AutocompleteEmojiController.kt index 2042b4f989..7aad96d55c 100644 --- a/vector/src/main/java/im/vector/app/features/autocomplete/emoji/AutocompleteEmojiController.kt +++ b/vector/src/main/java/im/vector/app/features/autocomplete/emoji/AutocompleteEmojiController.kt @@ -111,7 +111,7 @@ class AutocompleteEmojiController @Inject constructor( companion object { // Count of standard emoji matches - const val STANDARD_EMOJI_MAX = 9 + const val STANDARD_EMOJI_MAX = 7 // Count of emojis for the current room's image pack const val CUSTOM_THIS_ROOM_MAX = 8 // Count of emojis per other image pack diff --git a/vector/src/main/res/layout/item_autocomplete_emoji.xml b/vector/src/main/res/layout/item_autocomplete_emoji.xml index e6b7199ba7..3df0d920a1 100644 --- a/vector/src/main/res/layout/item_autocomplete_emoji.xml +++ b/vector/src/main/res/layout/item_autocomplete_emoji.xml @@ -20,6 +20,7 @@ android:layout_gravity="center_vertical" android:maxLines="1" android:textColor="?vctr_content_secondary" + android:textSize="@dimen/text_size_body" android:ellipsize="end" android:visibility="gone" tools:text="@string/custom_emotes_this_room" />