🚀 Auto-deploy: melhoria no snap e medição AR em 31/05/2026 23:55:14

This commit is contained in:
2026-05-31 23:55:14 +00:00
parent a2ac72cfe7
commit dc64c83cc8
+15 -6
View File
@@ -387,18 +387,18 @@ const Viewer = () => {
</div>
) : (
<>
{/* Botão de Toggle do Sidebar */}
{/* Botão de Expandir Sidebar (visível apenas se recolhido) */}
{!sidebarOpen && (
<Button
variant="outline"
size="icon"
onClick={() => setSidebarOpen(!sidebarOpen)}
className={`absolute z-30 h-8 w-8 rounded-md bg-background/80 border-primary/30 text-primary shadow-md hover:bg-primary/10 transition-all duration-300 ${
sidebarOpen ? "right-[332px]" : "right-4"
} top-[205px]`}
title={sidebarOpen ? "Recolher menu" : "Expandir menu"}
onClick={() => setSidebarOpen(true)}
className="absolute right-4 top-[205px] z-30 h-8 w-8 rounded-md bg-background/80 border-primary/30 text-primary shadow-md hover:bg-primary/10"
title="Expandir menu"
>
<Menu className="h-4 w-4" />
</Button>
)}
<ViewCube />
<ViewerControls />
@@ -416,6 +416,15 @@ const Viewer = () => {
<h2 className="font-mono text-xs font-semibold uppercase tracking-widest text-muted-foreground">
Cena · {models.length}/{maxModels} peças
</h2>
<Button
variant="ghost"
size="icon"
className="h-6 w-6 text-muted-foreground hover:text-foreground hover:bg-muted"
onClick={() => setSidebarOpen(false)}
title="Recolher menu"
>
<Menu className="h-4 w-4" />
</Button>
</div>
<SceneModelList />
<div className="mt-2 grid grid-cols-2 gap-1.5">