fix(layout): fix inconsistent background color for unpinned drag bars (#2186)

This commit is contained in:
Huang Xin
2025-10-10 00:35:00 +08:00
committed by GitHub
parent b69d9ed69f
commit 562fea3a36
2 changed files with 5 additions and 1 deletions
@@ -230,7 +230,10 @@ const Notebook: React.FC = ({}) => {
}
`}</style>
<div
className='drag-bar bg-base-100 absolute -left-2 top-0 h-full w-0.5 cursor-col-resize p-2'
className={clsx(
'drag-bar bg-base-100 absolute -left-2 top-0 h-full w-0.5 cursor-col-resize p-2',
isNotebookPinned ? 'bg-base-100' : 'bg-transparent',
)}
role='slider'
tabIndex={0}
aria-label={_('Resize Notebook')}
@@ -294,6 +294,7 @@ const SideBar: React.FC<{
<div
className={clsx(
'drag-bar bg-base-100 absolute -right-2 top-0 h-full w-0.5 cursor-col-resize p-1',
isSideBarPinned ? 'bg-base-100' : 'bg-transparent',
isMobile && 'hidden',
)}
role='slider'