From 6f5a852d88bafbd377508c4f7c99e3a9636cbb67 Mon Sep 17 00:00:00 2001 From: Dan Montgomery Date: Mon, 11 Nov 2024 22:54:12 -0500 Subject: [PATCH] Clean up some UX loose ends. --- gai-frontend/lib/chat/chat_bubble.dart | 8 ++++---- gai-frontend/lib/chat/chat_model_button.dart | 2 +- gai-frontend/lib/chat/chat_prompt.dart | 4 ++-- gai-frontend/lib/chat/chat_settings_button.dart | 2 ++ 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/gai-frontend/lib/chat/chat_bubble.dart b/gai-frontend/lib/chat/chat_bubble.dart index 735588b2a..ecdc19cce 100644 --- a/gai-frontend/lib/chat/chat_bubble.dart +++ b/gai-frontend/lib/chat/chat_bubble.dart @@ -28,7 +28,7 @@ class ChatBubble extends StatelessWidget { return Center( child: Column( children: [ - Text( + SelectableText( message.message, style: const TextStyle( fontFamily: 'Baloo2', @@ -104,7 +104,7 @@ class ChatBubble extends StatelessWidget { if (src == ChatMessageSource.provider) Padding( padding: EdgeInsets.only(left: iconTotalWidth), - child: Text( + child: SelectableText( message.message, style: const TextStyle( fontFamily: 'Baloo2', @@ -122,7 +122,7 @@ class ChatBubble extends StatelessWidget { color: Colors.black, borderRadius: BorderRadius.circular(10), ), - child: Text( + child: SelectableText( message.message, style: const TextStyle( fontFamily: 'Baloo2', @@ -138,7 +138,7 @@ class ChatBubble extends StatelessWidget { const SizedBox(height: 4), Padding( padding: EdgeInsets.only(left: iconTotalWidth), - child: Text( + child: SelectableText( message.formatUsage(), style: TextStyle( fontFamily: 'Baloo2', diff --git a/gai-frontend/lib/chat/chat_model_button.dart b/gai-frontend/lib/chat/chat_model_button.dart index 00d2356be..1b8c1da62 100644 --- a/gai-frontend/lib/chat/chat_model_button.dart +++ b/gai-frontend/lib/chat/chat_model_button.dart @@ -90,7 +90,7 @@ class _ModelSelectionButtonState extends State { height: _menuHeight, child: SizedBox( width: _menuWidth, - child: Text('No models available', style: _textStyle), + child: Text('Enter an account to see models', style: _textStyle), ), ), ]; diff --git a/gai-frontend/lib/chat/chat_prompt.dart b/gai-frontend/lib/chat/chat_prompt.dart index 793d6f00e..dae6a0615 100644 --- a/gai-frontend/lib/chat/chat_prompt.dart +++ b/gai-frontend/lib/chat/chat_prompt.dart @@ -38,8 +38,8 @@ class _ChatPromptPanelState extends State { }); }, icon: _showPromptDetails - ? const Icon(Icons.expand_more, color: Colors.white) - : const Icon(Icons.chevron_right, color: Colors.white), + ? const Icon(Icons.tune, color: Colors.white) + : const Icon(Icons.tune, color: Colors.white), ), Flexible( child: OrchidTextField( diff --git a/gai-frontend/lib/chat/chat_settings_button.dart b/gai-frontend/lib/chat/chat_settings_button.dart index 7d5b4e958..772f90b88 100644 --- a/gai-frontend/lib/chat/chat_settings_button.dart +++ b/gai-frontend/lib/chat/chat_settings_button.dart @@ -118,6 +118,7 @@ class _ChatSettingsButtonState extends State { SubmenuPopopMenuItemBuilder( builder: _buildIdenticonsPref, ), +/* div, SubmenuPopopMenuItemBuilder( builder: _buildLanguagePref, @@ -144,6 +145,7 @@ class _ChatSettingsButtonState extends State { launchUrlString(githubUrl); }, ), +*/ ]; }, child: SizedBox(