mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
@@ -222,6 +222,8 @@ export const SplitViewPanel = memo(function SplitViewPanel({
|
|||||||
return (
|
return (
|
||||||
<SplitViewPanelContainer
|
<SplitViewPanelContainer
|
||||||
style={style}
|
style={style}
|
||||||
|
data-is-resizing={!!resizingView}
|
||||||
|
data-is-reordering={!!draggingView}
|
||||||
data-is-dragging={dragging}
|
data-is-dragging={dragging}
|
||||||
data-is-active={isActive && views.length > 1}
|
data-is-active={isActive && views.length > 1}
|
||||||
data-is-first={isFirst}
|
data-is-first={isFirst}
|
||||||
|
|||||||
@@ -37,6 +37,12 @@ export const splitViewPanel = style({
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
|
||||||
selectors: {
|
selectors: {
|
||||||
|
'[data-is-resizing="true"]&': {
|
||||||
|
transition: 'none',
|
||||||
|
},
|
||||||
|
'[data-is-reordering="true"]&': {
|
||||||
|
flexGrow: 1,
|
||||||
|
},
|
||||||
'[data-client-border="false"] &[data-is-first="true"]': {
|
'[data-client-border="false"] &[data-is-first="true"]': {
|
||||||
borderTopLeftRadius: borderRadius,
|
borderTopLeftRadius: borderRadius,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user