Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

refactor: giving top right space to the restart-animation button

Arghya Das3274075534eb
diff --git a/components/component-preview.tsx b/components/component-preview.tsx
index 6d50dbf8..80bfa7c0 100644
--- a/components/component-preview.tsx
+++ b/components/component-preview.tsx
@@ -78,7 +78,7 @@ export function ComponentPreview({
<ComponentWrapper>
<Button
onClick={() => setKey((prev) => prev + 1)}
- className="absolute right-0 top-0 z-10 ml-4 flex items-center rounded-lg px-3 py-1"
+ className="absolute right-1.5 top-1.5 z-10 ml-4 flex items-center rounded-lg px-3 py-1"
variant="ghost"
>
<RotateCcw aria-label="restart-btn" size={16} />