mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-07 01:21:37 +00:00
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.
This commit is contained in:
@@ -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 }
|
||||
|
||||
+3
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user