Tilt hunks/files less, but with some randomness

Just because it's a bit fun, we can remove this at any time.
This commit is contained in:
Mattias Granlund 2023-07-12 11:44:19 +02:00
parent 31fc27000a
commit b619a0a4c7

View File

@ -65,7 +65,7 @@ export function dzTrigger(node: HTMLElement, opts: Partial<DzOptions> | undefine
const inner = clone.children[0] as HTMLElement;
inner.style.height = node.clientHeight + 'px';
inner.style.width = node.clientWidth + 'px';
inner.style.rotate = '5deg';
inner.style.rotate = `${Math.floor(Math.random() * 3)}deg`;
document.body.appendChild(clone);
// Dim the original element while dragging