From f9dce6fc11a15f8f9a83e1774a7210249c5ea029 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Thu, 16 Jan 2025 13:03:33 -0500 Subject: [PATCH] feat: show message when no word selected (#1479) --- assets/l10n/intl_en.arb | 2 +- lib/pangea/toolbar/widgets/message_toolbar.dart | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index 6fa32a1fd..8d769a01f 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -4659,7 +4659,7 @@ "myBaseLanguage": "My base language", "publicProfileTitle": "Allow my profile to be found in search", "publicProfileDesc": "By enabling this option, I confirm that I am of legal age in my country of residence", - "clickWordsInstructions": "Click on individual words for more activities.", + "clickWordsInstructions": "Click on a word or the buttons below to learn more", "chooseBestDefinition": "Choose the best definition", "meaningSectionHeader": "Meaning:", "formSectionHeader": "Forms used in chats:", diff --git a/lib/pangea/toolbar/widgets/message_toolbar.dart b/lib/pangea/toolbar/widgets/message_toolbar.dart index 6b3450d3e..9db07e5c8 100644 --- a/lib/pangea/toolbar/widgets/message_toolbar.dart +++ b/lib/pangea/toolbar/widgets/message_toolbar.dart @@ -105,10 +105,9 @@ class MessageToolbar extends StatelessWidget { @override Widget build(BuildContext context) { - if (overlayController.toolbarMode == MessageMode.noneSelected || - ![MessageTypes.Text, MessageTypes.Audio].contains( - pangeaMessageEvent.event.messageType, - )) { + if (![MessageTypes.Text, MessageTypes.Audio].contains( + pangeaMessageEvent.event.messageType, + )) { return const SizedBox(); }