mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-02 22:42:56 +03:00
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:
parent
31fc27000a
commit
b619a0a4c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user