Skip to content

Commit

Permalink
fix(composition compare): allow scrolling compositions that overflow …
Browse files Browse the repository at this point in the history
…the container (#8865)
  • Loading branch information
luvkapur authored May 9, 2024
1 parent b2660e1 commit 80aeee6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scopes/compositions/compositions/compositions.ui.runtime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { CompositionCompare } from '@teambit/compositions.ui.composition-compare
import { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';
import { CompositionsSection } from './composition.section';
import { CompositionsAspect } from './compositions.aspect';
import { MenuBarWidget } from './compositions';
import { CompositionContent, MenuBarWidget } from './compositions';

export type CompositionsMenuSlot = SlotRegistry<MenuBarWidget[]>;
export type EmptyStateSlot = SlotRegistry<ComponentType>;
Expand All @@ -28,7 +28,14 @@ export class CompositionsUI {
}

getCompositionsCompare = () => {
return <CompositionCompare emptyState={this.emptyStateSlot} />;
return (
<CompositionCompare
emptyState={this.emptyStateSlot}
PreviewView={(compositionProps) => {
return <CompositionContent {...compositionProps} fullContentHeight forceHeight={'100%'} />;
}}
/>
);
};

static dependencies = [ComponentAspect, ComponentCompareAspect];
Expand Down

0 comments on commit 80aeee6

Please sign in to comment.