@@ -27,34 +27,42 @@ struct SessionListView: View {
27
27
@Environment ( \. store) private var store
28
28
29
29
var body : some View {
30
- if sessions. isEmpty {
31
- Text ( " No Recorded Sessions " )
32
- . frame ( maxWidth: . infinity, maxHeight: . infinity)
33
- . foregroundColor ( . secondary)
34
- } else {
35
- content
36
- . onAppear { refreshGroups ( ) }
37
- . onChange ( of: sessions. count) { _ in refreshGroups ( ) }
30
+ VStack ( spacing: 0 ) {
31
+ #if os(macOS)
32
+ Text ( " Recorded sessions " )
33
+ . padding ( . vertical, 10 )
34
+ Divider ( )
35
+ #endif
36
+ if sessions. isEmpty {
37
+ Text ( " No Recorded Sessions " )
38
+ . frame ( maxWidth: . infinity, maxHeight: . infinity)
39
+ . foregroundColor ( . secondary)
40
+ } else {
41
+ content
42
+ . onAppear { refreshGroups ( ) }
43
+ . onChange ( of: sessions. count) { _ in refreshGroups ( ) }
44
+ }
38
45
}
39
46
}
40
47
41
48
@ViewBuilder
42
49
private var content : some View {
43
50
#if os(macOS)
44
- VStack {
51
+ VStack ( spacing : 0 ) {
45
52
list
46
- HStack {
53
+
47
54
#if PULSE_STANDALONE_APP
55
+ HStack {
48
56
NavigatorFilterBar ( text: $filterTerm)
49
57
. frame ( maxWidth: 200 )
50
58
. help ( " Show sessions with matching name " )
59
+ }
51
60
#else
52
- SearchBar ( title: " Filter " , imageName: " line.3.horizontal.decrease.circle " , text: $filterTerm)
53
- . frame ( maxWidth: 200 )
54
- . help ( " Show sessions with matching name " )
61
+ Divider ( )
62
+ SearchBar ( title: " Filter " , imageName: " line.3.horizontal.decrease.circle " , text: $filterTerm)
63
+ . help ( " Show sessions with matching name " )
64
+ . padding ( 8 )
55
65
#endif
56
- Spacer ( )
57
- } . padding ( 8 )
58
66
}
59
67
#else
60
68
list
@@ -92,10 +100,14 @@ struct SessionListView: View {
92
100
93
101
private func makeHeader( for startDate: Date , sessions: [ LoggerSessionEntity ] ) -> some View {
94
102
HStack {
103
+ #if os(macOS)
104
+ PlainListSectionHeaderSeparator ( title: sectionTitleFormatter. string ( from: startDate) + " ( \( sessions. count) ) " )
105
+ #else
95
106
( Text ( sectionTitleFormatter. string ( from: startDate) ) +
96
107
Text( " ( \( sessions. count) ) " ) . foregroundColor ( . secondary. opacity ( 0.5 ) ) )
97
108
. font ( . headline)
98
109
. padding ( . vertical, 6 )
110
+ #endif
99
111
100
112
#if os(iOS) || os(visionOS)
101
113
if editMode? . wrappedValue. isEditing ?? false {
0 commit comments