π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
fix(editor): seed click target from captured bounds instead of a generic rect
Luis Ortiz1c94f48d8955
diff --git a/src/ui/shared/ScreenshotView.tsx b/src/ui/shared/ScreenshotView.tsxindex 2319e47..16b427d 100644--- a/src/ui/shared/ScreenshotView.tsx+++ b/src/ui/shared/ScreenshotView.tsx@@ -237,13 +237,10 @@ export default function ScreenshotView({};const handleAddClickTarget = () => {- let nextEdits: ScreenshotEdits;- if (effectiveEdits?.target === null) {- nextEdits = { ...effectiveEdits };- delete nextEdits.target;- } else {- nextEdits = { ...effectiveEdits, target: defaultTargetRect(effectiveScreenshot) };- }+ const nextEdits: ScreenshotEdits = {+ ...effectiveEdits,+ target: effectiveEdits?.target ?? effectiveScreenshot.bounds ?? defaultTargetRect(effectiveScreenshot),+ };setEditsOverride(nextEdits);scheduleSave(nextEdits);};