Skip to content

Commit

Permalink
fix: remove preview overlay from component sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Sep 24, 2024
1 parent 64d718d commit bd32ccf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/library-authoring/component-info/ComponentPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import { OpenInFull } from '@openedx/paragon/icons';
import { LibraryBlock } from '../LibraryBlock';
import messages from './messages';

// This is a simple overlay to prevent interaction with the preview
const PreviewOverlay = () => (
<div className="position-absolute w-100 h-100 zindex-9" />
);

interface ModalComponentPreviewProps {
isOpen: boolean;
close: () => void;
Expand Down Expand Up @@ -44,7 +39,6 @@ const ComponentPreview = ({ usageKey }: ComponentPreviewProps) => {
return (
<>
<div className="position-relative m-2">
<PreviewOverlay />
<Button
size="sm"
variant="light"
Expand Down

0 comments on commit bd32ccf

Please sign in to comment.