From 5cccc0b3c61c49ba9116109e223ae05874d3d6da Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Mon, 27 Apr 2026 12:03:09 +0700 Subject: [PATCH] fix: set background color for shared image --- .../detail/DetailDailyChecklistContent.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/figma-make/components/pages/list-daily-checklist/detail/DetailDailyChecklistContent.tsx b/src/figma-make/components/pages/list-daily-checklist/detail/DetailDailyChecklistContent.tsx index 9af93ee8..8c3e30e7 100644 --- a/src/figma-make/components/pages/list-daily-checklist/detail/DetailDailyChecklistContent.tsx +++ b/src/figma-make/components/pages/list-daily-checklist/detail/DetailDailyChecklistContent.tsx @@ -593,7 +593,9 @@ export function DetailDailyChecklistContent() { let shareData: ShareData; if (isMobile) { - const htmlBlob = await htmlToImage.toBlob(document.body); + const htmlBlob = await htmlToImage.toBlob(document.body, { + backgroundColor: '#ffffff', + }); const imgFile = new File( [htmlBlob!], `daily-checklist-${header?.date}-${header?.kandang_name}-${header?.category}.png`, @@ -606,7 +608,6 @@ export function DetailDailyChecklistContent() { files: [imgFile], title: baseTitle, text: fullMessage, - url: window.location.href, }; } else { shareData = {