diff --git a/static/app/views/replays/detail/header/replayDetailsPageBreadcrumbs.tsx b/static/app/views/replays/detail/header/replayDetailsPageBreadcrumbs.tsx index eeba4a73fe4987..093942317dfcd1 100644 --- a/static/app/views/replays/detail/header/replayDetailsPageBreadcrumbs.tsx +++ b/static/app/views/replays/detail/header/replayDetailsPageBreadcrumbs.tsx @@ -107,47 +107,45 @@ export default function ReplayDetailsPageBreadcrumbs({readerResult}: Props) { onMouseLeave={() => setIsHovered(false)} > {organization.features.includes('replay-playlist-view') && ( - - - } - disabled={!previousReplay} - to={{ - pathname: previousReplay - ? makeReplaysPathname({ - path: `/${previousReplay.id}/`, - organization, - }) - : undefined, - query: initialLocation.current.query, - }} - onClick={() => - trackAnalytics('replay.details-playlist-clicked', { - direction: 'previous', - organization, - }) - } - /> - } - disabled={!nextReplay} - to={{ - pathname: nextReplay - ? makeReplaysPathname({path: `/${nextReplay.id}/`, organization}) - : undefined, - query: initialLocation.current.query, - }} - onClick={() => - trackAnalytics('replay.details-playlist-clicked', { - direction: 'next', - organization, - }) - } - /> - - + + } + disabled={!previousReplay} + to={{ + pathname: previousReplay + ? makeReplaysPathname({ + path: `/${previousReplay.id}/`, + organization, + }) + : undefined, + query: initialLocation.current.query, + }} + onClick={() => + trackAnalytics('replay.details-playlist-clicked', { + direction: 'previous', + organization, + }) + } + /> + } + disabled={!nextReplay} + to={{ + pathname: nextReplay + ? makeReplaysPathname({path: `/${nextReplay.id}/`, organization}) + : undefined, + query: initialLocation.current.query, + }} + onClick={() => + trackAnalytics('replay.details-playlist-clicked', { + direction: 'next', + organization, + }) + } + /> + )} @@ -195,3 +193,9 @@ const StyledBreadcrumbs = styled(Breadcrumbs)` const ShortId = styled('div')` margin-left: 10px; `; + +// Breadcrumbs have overflow: hidden, so we need to set the margin-top to 2px +// to avoid the buttons from being cut off. +const StyledButtonBar = styled(ButtonBar)` + margin-top: 2px; +`;