Skip to content

Commit f118cf7

Browse files
committed
Hide chat tab bar scroll indicator
1 parent 81d0a58 commit f118cf7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Core/Sources/SuggestionWidget/ChatWindowView.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ struct ChatWindowView: View {
6969
}
7070
}
7171

72+
private extension View {
73+
func hideScrollIndicator() -> some View {
74+
if #available(macOS 13.0, *) {
75+
return scrollIndicators(.hidden)
76+
} else {
77+
return self
78+
}
79+
}
80+
}
81+
7282
struct ChatTabBar: View {
7383
let store: StoreOf<ChatPanelFeature>
7484

@@ -107,6 +117,7 @@ struct ChatTabBar: View {
107117
}
108118
}
109119
}
120+
.hideScrollIndicator()
110121

111122
Divider()
112123

@@ -308,6 +319,11 @@ struct ChatWindowView_Previews: PreviewProvider {
308319
tabs: [
309320
FakeChatTab(id: "1", title: "Hello I am a chatbot"),
310321
EmptyChatTab(id: "2"),
322+
EmptyChatTab(id: "3"),
323+
EmptyChatTab(id: "4"),
324+
EmptyChatTab(id: "5"),
325+
EmptyChatTab(id: "6"),
326+
EmptyChatTab(id: "7"),
311327
],
312328
selectedTabId: "1"
313329
),

0 commit comments

Comments
 (0)