Use thumnbails instead of full screenshots for previews

This commit is contained in:
Kuba Orlik 2022-07-15 12:10:10 +02:00
parent 4163bf3cf7
commit 7c4de6fc5c
1 changed files with 2 additions and 1 deletions

View File

@ -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})`,
}}
>
<div className="browser__header">