From 45bba5ff1c3babae4024810dff78ff8ce1ab868e Mon Sep 17 00:00:00 2001 From: Tommy Chow Date: Tue, 21 Nov 2023 02:16:02 -0500 Subject: [PATCH] Fix multiline message clipping text fields (#298) * Reduce chat text field max lines to 3 * Increase text field content padding --- lib/screens/channel/chat/widgets/chat_bottom_bar.dart | 2 +- lib/theme.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/screens/channel/chat/widgets/chat_bottom_bar.dart b/lib/screens/channel/chat/widgets/chat_bottom_bar.dart index 3f470dd0..51c90991 100644 --- a/lib/screens/channel/chat/widgets/chat_bottom_bar.dart +++ b/lib/screens/channel/chat/widgets/chat_bottom_bar.dart @@ -151,7 +151,7 @@ class ChatBottomBar extends StatelessWidget { textInputAction: TextInputAction.send, focusNode: chatStore.textFieldFocusNode, minLines: 1, - maxLines: 5, + maxLines: 3, enabled: chatStore.auth.isLoggedIn ? true : false, decoration: InputDecoration( prefixIcon: chatStore.settings.emoteMenuButtonOnLeft diff --git a/lib/theme.dart b/lib/theme.dart index 7df33726..72081964 100644 --- a/lib/theme.dart +++ b/lib/theme.dart @@ -36,7 +36,7 @@ class FrostyThemes { surfaceTintColor: backgroundColor, ), inputDecorationTheme: InputDecorationTheme( - contentPadding: const EdgeInsets.symmetric(horizontal: 16), + contentPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 8), border: OutlineInputBorder( borderRadius: const BorderRadius.all(Radius.circular(100)), borderSide: BorderSide(color: secondaryBackground),