diff --git a/src/style.css b/src/style.css index bbc20df..36b2b01 100644 --- a/src/style.css +++ b/src/style.css @@ -15,6 +15,9 @@ .model_list_box { padding: 0; } +.manage_models_button { + padding: 6px 8px 6px 8px; +} .model_list_box > * { margin: 0; } diff --git a/src/window.py b/src/window.py index e38b34c..462ca2b 100644 --- a/src/window.py +++ b/src/window.py @@ -1287,6 +1287,7 @@ Generate a title following these rules: self.chats["order"] = [] for chat_name in self.chats["chats"].keys(): self.chats["order"].append(chat_name) + self.model_list_box.select_row(self.model_list_box.get_row_at_index(0)) if len(self.chats["chats"][self.chats["selected_chat"]]["messages"].keys()) > 0: last_model_used = self.chats["chats"][self.chats["selected_chat"]]["messages"][list(self.chats["chats"][self.chats["selected_chat"]]["messages"].keys())[-1]]["model"] for i, m in enumerate(self.local_models): @@ -1382,6 +1383,7 @@ Generate a title following these rules: menu_model=self.chat_right_click_menu, has_arrow=False, halign=1, + height_request=125 ) self.selected_chat_row = chat_row position = Gdk.Rectangle() diff --git a/src/window.ui b/src/window.ui index 82a6de9..5320f6d 100644 --- a/src/window.ui +++ b/src/window.ui @@ -99,19 +99,27 @@ + false 1 - 10 + 5 + + + Manage Models + left + 1 + + true - Manage Models Manage Models app.manage_models @@ -119,15 +127,23 @@ - - true - - + + 300 + true + true + + + true + + + + + @@ -1105,29 +1121,29 @@ By downloading any model you accept their license agreement available on the mod - - Delete Chat - app.delete_current_chat - - - Rename Chat - app.rename_current_chat - - - Export Chat - app.export_current_chat - - - Clear Chat - app.clear - - - +
+ + Rename Chat + app.rename_current_chat + + + Export Chat + app.export_current_chat + + + Clear Chat + app.clear + +
Delete Chat - app.delete_chat + app.delete_current_chat +
+
+ +
Rename Chat app.rename_chat @@ -1137,6 +1153,12 @@ By downloading any model you accept their license agreement available on the mod app.export_chat
+
+ + Delete Chat + app.delete_chat + +