mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Drawer/Pane: fix data-closed
This commit is contained in:
@@ -22,8 +22,8 @@ const DesktopPanelFixRoot = styled(Box)({
|
||||
|
||||
// Base state
|
||||
zIndex: themeZIndexDesktopPanel,
|
||||
|
||||
'&:not([data-open="true"])': {
|
||||
|
||||
'&[data-closed="true"]': {
|
||||
contain: 'strict',
|
||||
pointerEvents: 'none',
|
||||
},
|
||||
@@ -62,7 +62,7 @@ const DesktopPanelTranslatingSheet = styled(Sheet)(({ theme }) => ({
|
||||
willChange: 'transform', // optimize for transform animations
|
||||
|
||||
// Closed state via data attribute
|
||||
'&:not([data-open="true"])': {
|
||||
'&[data-closed="true"]': {
|
||||
transform: 'translateX(100%)',
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user