diff --git a/frontend/app/assets/img/report-head.png b/frontend/app/assets/img/report-head.png
new file mode 100644
index 000000000..2164cadba
Binary files /dev/null and b/frontend/app/assets/img/report-head.png differ
diff --git a/frontend/app/components/Session_/BugReport/BugReportModal.tsx b/frontend/app/components/Session_/BugReport/BugReportModal.tsx
index d898eb0f5..34f264d96 100644
--- a/frontend/app/components/Session_/BugReport/BugReportModal.tsx
+++ b/frontend/app/components/Session_/BugReport/BugReportModal.tsx
@@ -115,23 +115,29 @@ function BugReportModal({ hideModal, session, width, height, account, xrayProps,
}).then((canvas) => {
const imgData = canvas.toDataURL('img/png');
- var imgWidth = 210;
+ var imgWidth = 200;
var pageHeight = 295;
var imgHeight = (canvas.height * imgWidth) / canvas.width;
var heightLeft = imgHeight;
var position = 0;
- doc.addImage(imgData, 'PNG', 0, 0, imgWidth, imgHeight);
- heightLeft -= pageHeight;
+
+ doc.addImage(imgData, 'PNG', 5, 5, imgWidth, imgHeight);
+
+ doc.addImage('/assets/img/report-head.png', 'png', 210/2 - 40/2, 2, 45, 5);
+
+ heightLeft -= pageHeight - 7;
while (heightLeft >= 0) {
position = heightLeft - imgHeight + 10;
doc.addPage();
- doc.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight);
+ doc.addImage(imgData, 'PNG', 5, position, imgWidth, imgHeight);
+ doc.addImage('/assets/img/report-head.png', 'png', 210/2 - 40/2, pageHeight - 5, 45, 5);
heightLeft -= pageHeight;
}
doc.link(5, 295 - Math.abs(heightLeft) - 25, 200, 30, { url: sessionUrl });
+ if (position === 0) doc.addImage('/assets/img/report-head.png', 'png', 210/2 - 40/2, pageHeight - 5, 45, 5);
doc.save('Bug Report: ' + sessionId + '.pdf');
setRendering(false);
diff --git a/frontend/app/components/Session_/BugReport/components/StepsComponents/EventStep.tsx b/frontend/app/components/Session_/BugReport/components/StepsComponents/EventStep.tsx
index da0b79fde..65bccd397 100644
--- a/frontend/app/components/Session_/BugReport/components/StepsComponents/EventStep.tsx
+++ b/frontend/app/components/Session_/BugReport/components/StepsComponents/EventStep.tsx
@@ -6,8 +6,8 @@ const STEP_NAMES = { CLICKRAGE: 'Multiple click', CLICK: 'Clicked', LOCATION: 'V
import { useStore } from 'App/mstore';
import cn from 'classnames';
import { ErrorComp, NetworkComp, NoteComp } from './SubModalItems';
-import { durationFromMs } from 'App/date'
-import { Tooltip } from 'react-tippy'
+import { durationFromMs } from 'App/date';
+import { Tooltip } from 'react-tippy';
const SUBSTEP = {
network: NetworkComp,
@@ -52,11 +52,9 @@ function Step({ step, ind, isDefault }: { step: IStep; ind: number; isDefault?:
{ind + 1}
-
- {durationFromMs(step.time)}
-
+
{durationFromMs(step.time)}
{/* @ts-ignore */}
-
+
{/* @ts-ignore */}
{STEP_NAMES[step.type]}
{step.details}
@@ -68,20 +66,24 @@ function Step({ step, ind, isDefault }: { step: IStep; ind: number; isDefault?:
>
{/* @ts-ignore */}
-
- }
- items={menuItems}
- flat
- onToggle={(isOpen) => setMenu(isOpen)}
- />
+
+ }
+ items={menuItems}
+ flat
+ onToggle={(isOpen) => setMenu(isOpen)}
+ />
{/* @ts-ignore */}
- bugReportStore.removeStep(step)}>
-
-
+ bugReportStore.removeStep(step)}>
+
+
@@ -90,28 +92,27 @@ function Step({ step, ind, isDefault }: { step: IStep; ind: number; isDefault?:
{step.substeps.map((subStep) => {
const Component = SUBSTEP[subStep.type];
return (
-
-
- {/* @ts-ignore */}
-
-
-
+
+
+ {/* @ts-ignore */}
+
+
+
);
})}
diff --git a/frontend/app/components/Session_/BugReport/components/StepsComponents/SubModal.tsx b/frontend/app/components/Session_/BugReport/components/StepsComponents/SubModal.tsx
index afbc25e6d..e70f19150 100644
--- a/frontend/app/components/Session_/BugReport/components/StepsComponents/SubModal.tsx
+++ b/frontend/app/components/Session_/BugReport/components/StepsComponents/SubModal.tsx
@@ -98,7 +98,7 @@ function ModalActions() {
return (