This commit is contained in:
freedakgmail
2025-12-21 19:59:57 +08:00
parent 3489a10807
commit 5983f13282
7 changed files with 116 additions and 46 deletions
+2 -1
View File
@@ -389,12 +389,13 @@ export function TreeLayout({
return (
<div
key={index}
className="absolute bg-amber-700/70 dark:bg-amber-500/60"
className="absolute"
style={{
left: `${left}px`,
top: `${top}px`,
width: `${width}px`,
height: `${height}px`,
backgroundColor: 'rgba(180, 83, 9, 0.7)', // amber-700 with 70% opacity
transform: isHorizontal ? 'scaleY(0.5)' : 'scaleX(0.5)',
transformOrigin: 'top left',
}}