🎬 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
feat(editor): add a reset control to restore the uncropped framing
Luis Ortizef0314e08b5e
diff --git a/src/locales/en.yml b/src/locales/en.ymlindex 4f8d8f6..6f2c6b6 100644--- a/src/locales/en.yml+++ b/src/locales/en.yml@@ -202,6 +202,8 @@ annotationEditor:width_medium: "Medium"width_large: "Large"cornerRadius: "corner radius"+ cropHint: "Drag to crop, or drag a corner to resize"+ resetCrop: "Reset crop"arrowEnd: "end"fontSize: "font size"undo: "Undo"diff --git a/src/locales/es.yml b/src/locales/es.ymlindex fe939f0..161a8b9 100644--- a/src/locales/es.yml+++ b/src/locales/es.yml@@ -202,6 +202,8 @@ annotationEditor:width_medium: "Medio"width_large: "Grueso"cornerRadius: "radio"+ cropHint: "Arrastra para recortar o arrastra una esquina para redimensionar"+ resetCrop: "Restablecer recorte"arrowEnd: "punta"fontSize: "tamaño"undo: "Deshacer"diff --git a/src/locales/fr.yml b/src/locales/fr.ymlindex 49dfb23..55f232e 100644--- a/src/locales/fr.yml+++ b/src/locales/fr.yml@@ -202,6 +202,8 @@ annotationEditor:width_medium: "Moyen"width_large: "Épais"cornerRadius: "rayon"+ cropHint: "Faites glisser pour recadrer, ou un coin pour redimensionner"+ resetCrop: "Réinitialiser"arrowEnd: "extrémité"fontSize: "taille"undo: "Annuler"diff --git a/src/locales/pt-BR.yml b/src/locales/pt-BR.ymlindex 2b4edd3..192f073 100644--- a/src/locales/pt-BR.yml+++ b/src/locales/pt-BR.yml@@ -202,6 +202,8 @@ annotationEditor:width_medium: "Média"width_large: "Grossa"cornerRadius: "raio"+ cropHint: "Arraste para recortar ou arraste um canto para redimensionar"+ resetCrop: "Redefinir recorte"arrowEnd: "ponta"fontSize: "tamanho"undo: "Desfazer"diff --git a/src/ui/shared/AnnotationEditor.tsx b/src/ui/shared/AnnotationEditor.tsxindex 5ac3382..dcc7393 100644--- a/src/ui/shared/AnnotationEditor.tsx+++ b/src/ui/shared/AnnotationEditor.tsx@@ -9,6 +9,7 @@ import {Pencil,PenTool,Redo2,+ RotateCcw,Square,SquareDashed,Trash2,@@ -751,6 +752,23 @@ export default function AnnotationEditor({ screenshot, tool, onDone, onCancel }:</div></div><div className="shrink-0 bg-card border-t border-border px-4 py-3 flex flex-col items-center gap-2.5">+ {mode === 'crop' && (+ <div className="flex items-center gap-3 min-h-[46px]">+ <span className="text-[11px] text-muted-foreground">{i18n.t('annotationEditor.cropHint')}</span>+ <button+ type="button"+ onClick={() => {+ setViewport(undefined);+ setCropDraft(null);+ }}+ disabled={!viewport}+ className="flex items-center gap-1.5 px-3 h-8 rounded-lg border border-border text-[12px] font-semibold text-foreground hover:bg-secondary disabled:opacity-40"+ >+ <RotateCcw size={13} />+ {i18n.t('annotationEditor.resetCrop')}+ </button>+ </div>+ )}{mode === 'annotate' && (<div className="flex items-end gap-5 min-h-[46px]"><label className="flex flex-col items-center gap-1 text-[10px] font-semibold text-muted-foreground">