From b2a0435380c6393314b466a75243c8bc3ae7f9e1 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Mon, 5 May 2025 09:58:04 -0400 Subject: [PATCH] chore: fix text overflow in morph meaning popup (#2643) --- .../morphs/morph_meaning/morph_info_repo.dart | 2 -- .../word_zoom/morphological_list_item.dart | 19 +++++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/lib/pangea/morphs/morph_meaning/morph_info_repo.dart b/lib/pangea/morphs/morph_meaning/morph_info_repo.dart index 86408b55f..049dffcda 100644 --- a/lib/pangea/morphs/morph_meaning/morph_info_repo.dart +++ b/lib/pangea/morphs/morph_meaning/morph_info_repo.dart @@ -1,5 +1,4 @@ import 'dart:convert'; -import 'dart:developer'; import 'package:flutter/foundation.dart'; @@ -95,7 +94,6 @@ class MorphInfoRepo { LanguageKeys.defaultLanguage, ), ); - debugger(when: kDebugMode); final morph = res.getFeatureByCode(feature.name); final data = morph?.getTagByCode(tag); diff --git a/lib/pangea/toolbar/widgets/word_zoom/morphological_list_item.dart b/lib/pangea/toolbar/widgets/word_zoom/morphological_list_item.dart index f7e4e1038..778ddbe72 100644 --- a/lib/pangea/toolbar/widgets/word_zoom/morphological_list_item.dart +++ b/lib/pangea/toolbar/widgets/word_zoom/morphological_list_item.dart @@ -260,14 +260,17 @@ class MorphMeaningPopupState extends State { morphTag: _morphTag, ), ), - Text( - getGrammarCopy( - category: _morphFeature.name, - lemma: _morphTag, - context: context, - ) ?? - _morphTag, - style: Theme.of(context).textTheme.titleMedium, + Flexible( + child: Text( + textAlign: TextAlign.center, + getGrammarCopy( + category: _morphFeature.name, + lemma: _morphTag, + context: context, + ) ?? + _morphTag, + style: Theme.of(context).textTheme.titleMedium, + ), ), if (MatrixState.pangeaController.getAnalytics .constructListModel