From 2357751c56c14492e4a104ffcc403b6da01817fa Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Wed, 15 Jan 2025 13:42:59 -0500 Subject: [PATCH] fix: revent toolbar max height (#1460) --- lib/config/app_config.dart | 2 +- .../morphs/morphological_center_widget.dart | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/config/app_config.dart b/lib/config/app_config.dart index 2dc05f4a4..2514b7c22 100644 --- a/lib/config/app_config.dart +++ b/lib/config/app_config.dart @@ -23,7 +23,7 @@ abstract class AppConfig { static const double messageFontSize = 16.0; static const bool allowOtherHomeservers = true; static const bool enableRegistration = true; - static const double toolbarMaxHeight = 440.0; + static const double toolbarMaxHeight = 300.0; static const double toolbarMinHeight = 175.0; static const double toolbarMinWidth = 350.0; static const double toolbarButtonsHeight = 50.0; diff --git a/lib/pangea/toolbar/widgets/word_zoom/morphs/morphological_center_widget.dart b/lib/pangea/toolbar/widgets/word_zoom/morphs/morphological_center_widget.dart index f71cbd703..1fe46eb04 100644 --- a/lib/pangea/toolbar/widgets/word_zoom/morphs/morphological_center_widget.dart +++ b/lib/pangea/toolbar/widgets/word_zoom/morphs/morphological_center_widget.dart @@ -190,7 +190,7 @@ class MorphologicalCenterWidgetState extends State { ), const SizedBox(height: 10), Container( - constraints: const BoxConstraints(maxWidth: 400, maxHeight: 170), + constraints: const BoxConstraints(maxWidth: 400, maxHeight: 120), child: Scrollbar( controller: _scrollController, thumbVisibility: true, @@ -272,6 +272,12 @@ class MorphologicalCenterWidgetState extends State { // child: Text(L10n.of(context).removeFeature(morphCopy)), // ), ElevatedButton( + style: ElevatedButton.styleFrom( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(10.0), + ), + padding: const EdgeInsets.symmetric(horizontal: 10), + ), onPressed: () { setState(() { editMode = false; @@ -280,6 +286,12 @@ class MorphologicalCenterWidgetState extends State { child: Text(L10n.of(context).cancel), ), ElevatedButton( + style: ElevatedButton.styleFrom( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(10.0), + ), + padding: const EdgeInsets.symmetric(horizontal: 10), + ), onPressed: selectedMorphTag == widget.token.morph[widget.morphFeature] ? null