This commit is contained in:
daniel31x13 2024-09-04 23:02:19 -04:00
parent 43d50dfd1b
commit dfcc271343
3 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ export default function LinkDetails({
width={1280} width={1280}
height={720} height={720}
alt="" alt=""
className="object-cover scale-105" className="object-cover scale-105 object-center h-full"
style={{ style={{
filter: "blur(1px)", filter: "blur(1px)",
}} }}

View File

@ -412,7 +412,7 @@ const useUpdatePreview = () => {
`/api/v1/archives/${linkId}?format=` + ArchivedFormat.jpeg, `/api/v1/archives/${linkId}?format=` + ArchivedFormat.jpeg,
{ {
body: formBody, body: formBody,
method: "POST", method: "PUT",
} }
); );

View File

@ -206,7 +206,7 @@ export default async function Index(req: NextApiRequest, res: NextApiResponse) {
}); });
} }
// To update the link preview // To update the link preview
else if (req.method === "PUT" && format === ArchivedFormat.jpeg) { else if (req.method === "PUT") {
if (process.env.NEXT_PUBLIC_DEMO === "true") if (process.env.NEXT_PUBLIC_DEMO === "true")
return res.status(400).json({ return res.status(400).json({
response: response: