Remove Home Header
Nucleic-Session: 21C33A6B-CE4E-4155-84C1-CB881C03DD3A Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -107,16 +107,31 @@ struct SessionsView: View {
|
|||||||
.onChange(of: path) { _, newPath in
|
.onChange(of: path) { _, newPath in
|
||||||
store.compactDetailPresented = !newPath.isEmpty
|
store.compactDetailPresented = !newPath.isEmpty
|
||||||
}
|
}
|
||||||
.toolbar {
|
}
|
||||||
ToolbarItem(placement: .topBarTrailing) {
|
}
|
||||||
|
|
||||||
|
/// The page's large title as content, so the archive toggle can share its row (vertically
|
||||||
|
/// centered with the title) instead of floating in the compact bar above it. Mirrors the Home
|
||||||
|
/// dashboard's greeting header — same large-title font and top band — for a consistent look.
|
||||||
|
private var sessionsHeader: some View {
|
||||||
|
HStack {
|
||||||
|
Text("Sessions").font(.largeTitle.bold())
|
||||||
|
Spacer()
|
||||||
Button {
|
Button {
|
||||||
showArchived.toggle()
|
showArchived.toggle()
|
||||||
} label: {
|
} label: {
|
||||||
Image(systemName: showArchived ? "archivebox.fill" : "archivebox")
|
Image(systemName: showArchived ? "archivebox.fill" : "archivebox")
|
||||||
|
.font(.title3)
|
||||||
}
|
}
|
||||||
|
.foregroundStyle(Palette.accent)
|
||||||
|
.accessibilityLabel(showArchived ? "Hide archived sessions" : "Show archived sessions")
|
||||||
}
|
}
|
||||||
}
|
.padding(.horizontal)
|
||||||
}
|
.padding(.top, 52)
|
||||||
|
.padding(.bottom, 8)
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
|
// Cover the list rows that scroll up behind the pinned header.
|
||||||
|
.background(Color(.systemGroupedBackground))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Push the session a notification tap asked for, then clear the request.
|
/// Push the session a notification tap asked for, then clear the request.
|
||||||
|
|||||||
Reference in New Issue
Block a user