From 2ad245f4d08392c8a2d647bbf3fe5499ed99f5d8 Mon Sep 17 00:00:00 2001 From: Kelrap Date: Mon, 22 Dec 2025 10:21:02 -0500 Subject: [PATCH] Make input bar suggestion text vertically centered when shrinking --- lib/pages/chat/input_bar.dart | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/pages/chat/input_bar.dart b/lib/pages/chat/input_bar.dart index 994491220..0dfd35fcd 100644 --- a/lib/pages/chat/input_bar.dart +++ b/lib/pages/chat/input_bar.dart @@ -523,14 +523,17 @@ class InputBar extends StatelessWidget { // decoration: decoration!, // Pangea# decoration: decoration.copyWith( - hint: ShrinkableText( - text: choreographer.itController.open.value - ? L10n.of(context).buildTranslation - : _defaultHintText(context), - maxWidth: double.infinity, - style: Theme.of(context).textTheme.bodyLarge?.copyWith( - color: Theme.of(context).disabledColor, - ), + hint: SizedBox( + height: 24, + child: ShrinkableText( + text: choreographer.itController.open.value + ? L10n.of(context).buildTranslation + : _defaultHintText(context), + maxWidth: double.infinity, + style: Theme.of(context).textTheme.bodyLarge?.copyWith( + color: Theme.of(context).disabledColor, + ), + ), ), ), onChanged: (text) {