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

View File

@ -12,6 +12,7 @@ enum taskState {
type Screenshot = { type Screenshot = {
url: string; url: string;
thumb_url: string;
domain: string; domain: string;
filename: string; filename: string;
found_headers: string[]; found_headers: string[];
@ -196,7 +197,7 @@ export default function ScreenshotGenerator({
key={`${taskId}_${screenshot.url}`} key={`${taskId}_${screenshot.url}`}
className="browser browser--filled" className="browser browser--filled"
style={{ style={{
backgroundImage: `url(${SS_URL}${screenshot.url})`, backgroundImage: `url(${SS_URL}${screenshot.thumb_url})`,
}} }}
> >
<div className="browser__header"> <div className="browser__header">