From 7c4de6fc5c82189cfba753ce49bddf2472b9bca1 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Fri, 15 Jul 2022 12:10:10 +0200 Subject: [PATCH] Use thumnbails instead of full screenshots for previews --- components/report-window/screenshot-generator.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/report-window/screenshot-generator.tsx b/components/report-window/screenshot-generator.tsx index 7785d39..8c74944 100644 --- a/components/report-window/screenshot-generator.tsx +++ b/components/report-window/screenshot-generator.tsx @@ -12,6 +12,7 @@ enum taskState { type Screenshot = { url: string; + thumb_url: string; domain: string; filename: string; found_headers: string[]; @@ -196,7 +197,7 @@ export default function ScreenshotGenerator({ key={`${taskId}_${screenshot.url}`} className="browser browser--filled" style={{ - backgroundImage: `url(${SS_URL}${screenshot.url})`, + backgroundImage: `url(${SS_URL}${screenshot.thumb_url})`, }} >