Browse Source

fix: Issue scroll to see replay should not scroll too far (#56978)

Scroll to the replay section, not breadcrumbs which are further down.

Problem: https://jam.dev/c/b100dcf2-a69d-462f-97aa-a1eac584209e

Relates to: https://github.com/getsentry/sentry/pull/53120
Ryan Albrecht 1 year ago
parent
commit
5a9caff42b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/views/issueDetails/groupEventCarousel.tsx

+ 1 - 1
static/app/views/issueDetails/groupEventCarousel.tsx

@@ -351,7 +351,7 @@ export function GroupEventActions({event, group, projectSlug}: GroupEventActions
             label: t('View Replay'),
             hidden: !hasReplay || !isReplayEnabled,
             onAction: () => {
-              const breadcrumbsHeader = document.getElementById('breadcrumbs');
+              const breadcrumbsHeader = document.getElementById('replay');
               if (breadcrumbsHeader) {
                 breadcrumbsHeader.scrollIntoView({behavior: 'smooth'});
               }