From 85a3cfb40ff76669a7d03a40d3d60e032dcc61c0 Mon Sep 17 00:00:00 2001 From: weishu Date: Sun, 1 Nov 2026 15:35:20 +0800 Subject: [PATCH] fix(ios): return the session list to an inline title The large title only cost vertical space once the second section was renamed to Recent; the inline title shares the toolbar row. --- ios/Hapi/Features/Home/HomeView.swift | 6 +++--- ios/README.md | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ios/Hapi/Features/Home/HomeView.swift b/ios/Hapi/Features/Home/HomeView.swift index c91aef82..e3ae8abe 100644 --- a/ios/Hapi/Features/Home/HomeView.swift +++ b/ios/Hapi/Features/Home/HomeView.swift @@ -119,9 +119,9 @@ struct HomeView: View { listModel.selectedSessionId = sessionId } .navigationTitle("Sessions") - // Large title collapses on scroll (Mail/Messages) and replaces the - // blank band an inline title left above the first section. - .navigationBarTitleDisplayMode(.large) + // Inline: it shares the toolbar row, so the list starts right below + // and Pinned/Recent headers carry the structure. + .navigationBarTitleDisplayMode(.inline) .modifier(SidebarTitleRemoval(isSidebar: showsSideBySide || isFoldedOuterScreen)) .toolbar { ToolbarItem(placement: .topBarLeading) { settingsButton } diff --git a/ios/README.md b/ios/README.md index 0d72d263..359d6369 100644 --- a/ios/README.md +++ b/ios/README.md @@ -365,10 +365,9 @@ columns, folded collapses to the phone stack without recreating the chat. Other iPhones keep their single `NavigationStack`. The phone-width session list puts Settings on the leading edge and the filter on the trailing edge; on iOS 26+ New Session sits beside the bottom search field (as in Messages), while iOS -17/18 keeps it in the top bar. The list uses a large "Sessions" title that -collapses on scroll. A side-by-side sidebar drops that title, keeps search at -its top and moves the filter beside Settings, because the system sidebar -toggle shares the trailing edge. On the +17/18 keeps it in the top bar. A side-by-side sidebar drops its inline +"Sessions" title, keeps search at its top and moves the filter beside +Settings, because the system sidebar toggle shares the trailing edge. On the folded Duo's 678pt outer screen the system moves Back and toolbar actions into a vertical side bar, so the session list drops its "Sessions" title (the empty top bar disappears) and