Skip to content

Fix sidebar run button hidden after Home -> Request navigation#1089

Merged
cugarteblair merged 1 commit into
mainfrom
issue-1087-sidebar-scroll-position
Jul 1, 2026
Merged

Fix sidebar run button hidden after Home -> Request navigation#1089
cugarteblair merged 1 commit into
mainfrom
issue-1087-sidebar-scroll-position

Conversation

@cugarteblair

Copy link
Copy Markdown
Member

Summary

  • LandingView.vue's onMounted hook scrolls the shared .sliderule-content container (owned by App.vue, persistent across all route navigations) to center a panel/tab.
  • Nothing ever reset that scroll position, so navigating Home -> Request left RequestView's sidebar (and its run button) rendered below the fold, cropped by the leftover scroll offset.
  • No other view touches .sliderule-content's scroll, which is why this only reproduced from Home, as confirmed by the reporter.
  • Fix: add an onBeforeUnmount hook in LandingView.vue that resets .sliderule-content back to the top before the next view mounts (Vue/vue-router guarantee the outgoing view's unmount hooks run before the incoming view mounts, so there's no race).

Fixes #1087

Test plan

  • make typecheck passes
  • Reproduced the bug locally, verified navigating Home -> Request no longer hides the sidebar's run button
  • Regression: Request reached from Settings/Server/RecTree/Globe still fine
  • Regression: Home -> other views still fine

LandingView scrolls the persistent .sliderule-content container to
center a panel, but nothing restored it afterward, leaving the
Request view's sidebar (and its run button) cropped when navigated
to directly from Home.
@cugarteblair
cugarteblair merged commit 8389750 into main Jul 1, 2026
1 check passed
@cugarteblair
cugarteblair deleted the issue-1087-sidebar-scroll-position branch July 1, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar initial scroll position hides run button

1 participant