Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -170,6 +170,7 @@ export function ViewerControls() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
className="gap-2 h-9"
|
className="gap-2 h-9"
|
||||||
onClick={() => setMeasureMode(!measureMode)}
|
onClick={() => setMeasureMode(!measureMode)}
|
||||||
|
title="Clique para marcar pontos · Esc desfaz ponto pendente · Z desfaz última medição"
|
||||||
>
|
>
|
||||||
<Ruler className="h-3.5 w-3.5" />
|
<Ruler className="h-3.5 w-3.5" />
|
||||||
<span className="font-mono text-xs">
|
<span className="font-mono text-xs">
|
||||||
@@ -181,6 +182,18 @@ export function ViewerControls() {
|
|||||||
</span>
|
</span>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
{(measurePoints.length > 0 || measurements.length > 0) && (
|
||||||
|
<Button
|
||||||
|
variant="ghost"
|
||||||
|
size="icon"
|
||||||
|
className="h-9 w-9"
|
||||||
|
onClick={undoLastMeasurement}
|
||||||
|
title="Desfazer (Z)"
|
||||||
|
>
|
||||||
|
<Undo2 className="h-3.5 w-3.5 text-muted-foreground" />
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
|
|
||||||
{measurements.length > 0 && (
|
{measurements.length > 0 && (
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
@@ -194,6 +207,7 @@ export function ViewerControls() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{/* Screenshot */}
|
{/* Screenshot */}
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|||||||
Reference in New Issue
Block a user