Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Sources/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8724,6 +8724,7 @@ struct VerticalTabsSidebar: View {

VStack(spacing: 0) {
GeometryReader { proxy in
ScrollViewReader { scrollProxy in
ScrollView {
VStack(spacing: 0) {
// Space for traffic lights / fullscreen controls
Expand Down Expand Up @@ -8827,6 +8828,13 @@ struct VerticalTabsSidebar: View {
}
.background(Color.clear)
.modifier(ClearScrollBackground())
.onChange(of: tabManager.selectedTabId) { newId in
guard let newId else { return }
withAnimation(.easeOut(duration: 0.15)) {
scrollProxy.scrollTo(newId, anchor: nil)
}
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
Comment thread
sugarshin marked this conversation as resolved.
Resolved
}
Comment thread
sugarshin marked this conversation as resolved.
Resolved
}
SidebarFooter(updateViewModel: updateViewModel, onSendFeedback: onSendFeedback)
.frame(maxWidth: .infinity, alignment: .leading)
Expand Down