The following changes were made by the replace_file_content tool to: /root/MayaXSenderbot/bridge.py. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -411,7 +411,9 @@ def _workspace_fcm_menu(self, ws: Workspace) -> ReplyKeyboardMarkup: return reply_kb(FCM_KB) - def _paginate_list(self, items: list[str], page: int, page_size: int = 8) -> tuple[list[str], int, int]: + PAGE_SIZE = 60 + + def _paginate_list(self, items: list[str], page: int, page_size: int = 60) -> tuple[list[str], int, int]: total_items = len(items) total_pages = max(1, (total_items + page_size - 1) // page_size) page = max(1, min(page, total_pages)) @@ -426,7 +426,9 @@ page: int, total_pages: int, ) -> ReplyKeyboardMarkup: - rows = [[f"{prefix}{item}"] for item in items] + rows = [] + for i in range(0, len(items), 2): + rows.append([f"{prefix}{item}" for item in items[i:i+2]]) if total_pages > 1: nav_row = [] if page > 1: @@ -447,7 +447,7 @@ state: str, ) -> None: ws.state = state - page_items, current_page, total_pages = self._paginate_list(items, ws.page, page_size=8) + page_items, current_page, total_pages = self._paginate_list(items, ws.page, page_size=self.PAGE_SIZE) ws.page = current_page self.save_workspace(ws) kb = self._build_paginated_keyboard(page_items, prefix, current_page, total_pages) [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.