chore: adjust sidebar toggle button position

This commit is contained in:
codytseng 2026-01-20 22:54:40 +08:00
parent 2cd1ae481b
commit 8aca9efe68

View file

@ -67,8 +67,10 @@ export default function PrimaryPageSidebar() {
</div>
<button
className={cn(
'absolute flex flex-col justify-center items-center right-0 w-5 h-6 p-0 rounded-l-md hover:shadow-md text-muted-foreground hover:text-foreground hover:bg-background transition-colors [&_svg]:size-4',
themeSetting === 'pure-black' || enableSingleColumnLayout ? 'top-3' : 'top-5'
'absolute flex flex-col justify-center items-center w-5 h-6 p-0 rounded-l-md hover:shadow-md text-muted-foreground hover:text-foreground hover:bg-background transition-colors [&_svg]:size-4',
themeSetting === 'pure-black' || enableSingleColumnLayout
? 'top-3 right-0'
: 'top-5 -right-0.5'
)}
onClick={(e) => {
e.stopPropagation()