fix: in Knotenpunkte Einheit nicht im Feld
This commit is contained in:
@@ -96,20 +96,24 @@ export default function Knotenpunkte({ slot, onClose }: Props) {
|
||||
}}
|
||||
disabled
|
||||
/>
|
||||
<input
|
||||
type="number"
|
||||
min={0}
|
||||
step={0.01}
|
||||
className="border border-gray-200 rounded px-2 py-1 w-full laptop:w-24"
|
||||
value={linienLaenge[index]}
|
||||
onChange={(e) => {
|
||||
const updated = [...linienLaenge];
|
||||
updated[index] = parseFloat(e.target.value);
|
||||
setLinienLaenge(updated);
|
||||
}}
|
||||
disabled
|
||||
/>
|
||||
<span className="pl-1">Meter</span>
|
||||
<div className="relative w-full laptop:w-24">
|
||||
<input
|
||||
type="number"
|
||||
min={0}
|
||||
step={0.01}
|
||||
className="border border-gray-200 rounded px-2 py-1 pr-12 w-full text-right"
|
||||
value={linienLaenge[index]}
|
||||
onChange={(e) => {
|
||||
const updated = [...linienLaenge];
|
||||
updated[index] = parseFloat(e.target.value);
|
||||
setLinienLaenge(updated);
|
||||
}}
|
||||
disabled
|
||||
/>
|
||||
<span className="absolute right-2 top-1/2 transform -translate-y-1/2 text-gray-500 text-sm">
|
||||
m
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user