We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83f1139 commit 70aeb0cCopy full SHA for 70aeb0c
apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx
@@ -681,8 +681,16 @@ export function Sidebar() {
681
) as HTMLElement
682
if (activeWorkflow) {
683
activeWorkflow.scrollIntoView({
684
- block: 'nearest',
+ block: 'start',
685
})
686
+
687
+ // Adjust scroll position to eliminate the small gap at the top
688
+ const scrollViewport = scrollContainer.querySelector(
689
+ '[data-radix-scroll-area-viewport]'
690
+ ) as HTMLElement
691
+ if (scrollViewport && scrollViewport.scrollTop > 0) {
692
+ scrollViewport.scrollTop = Math.max(0, scrollViewport.scrollTop - 8)
693
+ }
694
}
695
696
0 commit comments