From 59c6edc7cb186eee0b77a65d6010f8ff7e527c31 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 12 Jun 2023 16:32:57 +0200 Subject: [PATCH] fix(ui): user events overlap on first event --- frontend/app/components/Session_/EventsBlock/Event.tsx | 4 ++-- frontend/app/components/Session_/EventsBlock/EventsBlock.tsx | 4 +--- frontend/app/components/Session_/EventsBlock/event.module.css | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/app/components/Session_/EventsBlock/Event.tsx b/frontend/app/components/Session_/EventsBlock/Event.tsx index 5cfd6a8e9..cb218441c 100644 --- a/frontend/app/components/Session_/EventsBlock/Event.tsx +++ b/frontend/app/components/Session_/EventsBlock/Event.tsx @@ -149,7 +149,7 @@ const Event: React.FC = ({ {isLocation && ( -
+
{body}
)} @@ -177,7 +177,7 @@ const Event: React.FC = ({ [cls.frustration]: isFrustration, [cls.highlight]: presentInSearch, [cls.lastInGroup]: whiteBg, - ['pl-6 ml-4 py-2 border-l']: event.type !== TYPES.LOCATION + ['pl-4 pr-6 ml-4 py-2 border-l']: event.type !== TYPES.LOCATION })} onClick={onClick} onContextMenu={onContextMenu} diff --git a/frontend/app/components/Session_/EventsBlock/EventsBlock.tsx b/frontend/app/components/Session_/EventsBlock/EventsBlock.tsx index 02213b830..aacebb56d 100644 --- a/frontend/app/components/Session_/EventsBlock/EventsBlock.tsx +++ b/frontend/app/components/Session_/EventsBlock/EventsBlock.tsx @@ -138,12 +138,10 @@ function EventsBlock(props: IProps) { const isTabChange = event.type === 'TABCHANGE'; const isCurrent = index === currentTimeEventIndex; - const heightBug = - index === 0 && event?.type === TYPES.LOCATION && 'referrer' in event ? { top: 2 } : {}; return ( {({ measure, registerChild }) => ( -
+