Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -3,15 +3,20 @@ import { Button } from '@/components/ui/button';
|
||||
import { useModelStore } from '@/stores/useModelStore';
|
||||
|
||||
export function MeasurementsList() {
|
||||
const { measurements, removeMeasurement } = useModelStore();
|
||||
const { measurements, removeMeasurement, scaleRatio } = useModelStore();
|
||||
|
||||
if (measurements.length === 0) return null;
|
||||
|
||||
return (
|
||||
<div className="space-y-2">
|
||||
<div className="flex items-center justify-between">
|
||||
<h3 className="font-mono text-xs font-semibold uppercase tracking-widest text-muted-foreground">
|
||||
Medições
|
||||
</h3>
|
||||
<span className="font-mono text-[10px] text-primary" title="Valores em mm reais (compensados pela escala)">
|
||||
mm reais · {scaleRatio.label}
|
||||
</span>
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
{measurements.map((m, i) => (
|
||||
<div key={m.id} className="flex items-center justify-between rounded-lg border bg-muted/30 px-3 py-2">
|
||||
|
||||
Reference in New Issue
Block a user