Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

fix(editor): cap the canvas height against the viewport again

Luis Ortiza4c940457d6c
diff --git a/src/ui/shared/AnnotationEditor.tsx b/src/ui/shared/AnnotationEditor.tsx
index 450aca8..a5c827e 100644
--- a/src/ui/shared/AnnotationEditor.tsx
+++ b/src/ui/shared/AnnotationEditor.tsx
@@ -983,7 +983,7 @@ export default function AnnotationEditor({ screenshot, tool, onDone, onCancel }:
ref={canvasRef}
width={screenshot.width}
height={screenshot.height}
- className="block max-w-full max-h-full rounded-lg shadow-2xl touch-none"
+ className="block max-w-full max-h-[calc(100vh-98px)] rounded-lg shadow-2xl touch-none"
style={{ cursor: cursorFor(mode, activeTool, hovering, grabbing) }}
onPointerDown={handlePointerDown}
onPointerMove={handlePointerMove}