Skip to content

Commit

Permalink
CB-4429 fix: hide content if maximized pane
Browse files Browse the repository at this point in the history
  • Loading branch information
s.teleshev committed Jan 31, 2024
1 parent 90fa496 commit 932b00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/packages/core-blocks/src/Split/Pane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { useSplit } from './useSplit';
export const Pane = observer<PaneProps>(function Pane({ className, children, ...rest }) {
const styles = useS(style);
const split = useSplit();
const shouldHideContent = rest.main && split.state.mode === 'minimize';
const shouldHideContent = (rest.main && split.state.mode === 'minimize') || (!rest.main && split.state.mode === 'maximize');

return (
<BasePane className={s(styles, { pane: true }, className)} {...rest}>
Expand Down

0 comments on commit 932b00d

Please sign in to comment.