fix: remove preview overlay from library component sidebar (#1323)

This commit is contained in:
Rômulo Penido
2024-09-25 13:32:49 -03:00
committed by GitHub
parent 5f41db83c2
commit b6ec5e1e3a

View File

@@ -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;
@@ -44,7 +39,6 @@ const ComponentPreview = ({ usageKey }: ComponentPreviewProps) => {
return (
<>
<div className="position-relative m-2">
<PreviewOverlay />
<Button
size="sm"
variant="light"