Update DebugDrawer button styling for improved alignment and visual consistency. Adjusted button's translate-x class for better positioning of the toggle indicator.

This commit is contained in:
Xin Wang
2026-02-27 16:55:46 +08:00
parent 229243e832
commit 1a2d9a4632

View File

@@ -3649,7 +3649,7 @@ export const DebugDrawer: React.FC<{
title={enabled ? '点击关闭' : '点击开启'}
>
<span
className={`absolute top-0.5 h-5 w-5 rounded-full bg-white shadow transition-transform ${enabled ? 'translate-x-5' : 'translate-x-0.5'}`}
className={`absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-white shadow transition-transform ${enabled ? 'translate-x-5' : 'translate-x-0'}`}
/>
</button>
</div>