Use thumnbails instead of full screenshots for previews
This commit is contained in:
parent
4163bf3cf7
commit
7c4de6fc5c
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user