diff --git a/src/components/object-position-control.tsx b/src/components/object-position-control.tsx
index d67cee1..05f7acc 100644
--- a/src/components/object-position-control.tsx
+++ b/src/components/object-position-control.tsx
@@ -22,11 +22,15 @@ const positions: Position[] = [
interface ObjectPositionControlProps {
value: string;
onChange: (value: Position) => void;
+ disabled?: boolean;
}
-export function ObjectPositionControl({ value, onChange }: ObjectPositionControlProps) {
+export function ObjectPositionControl({ value, onChange, disabled = false }: ObjectPositionControlProps) {
return (
-
+
{positions.map((pos) => (
-
{ onSettingsChange({ height: e.target.value, aspectRatio: 'custom' }) }} />
+
{ onSettingsChange({ height: e.target.value, aspectRatio: 'custom' }) }} disabled={disabled} />
-
onSettingsChange({ keepOrientation: Boolean(checked) })} />
-
-