Skip to content

Commit fe308b6

Browse files
committed
Commenting out div overlay hack for now.
1 parent ab14942 commit fe308b6

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

src/components/cards/cards.jsx

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -278,64 +278,64 @@ const Cards = props => {
278278
const steps = content[activeDeckId].steps;
279279

280280
return (
281-
<Box
281+
/* <Box
282282
// Use static `cards-overlay` class for bounds of draggables
283283
className={styles.cardContainerOverlay}
284284
style={{
285285
width: 500, // props.stageSize.width,
286286
height: 500 // props.stageSize.height
287287
}}
288+
> */
289+
<Draggable
290+
bounds="parent"
291+
position={{x: x, y: y}}
292+
onDrag={onDrag}
293+
onStart={onStartDrag}
294+
onStop={onEndDrag}
288295
>
289-
<Draggable
290-
bounds="parent"
291-
position={{x: x, y: y}}
292-
onDrag={onDrag}
293-
onStart={onStartDrag}
294-
onStop={onEndDrag}
295-
>
296-
<div className={styles.cardContainer}>
297-
<div className={styles.card}>
298-
<CardHeader
299-
expanded={expanded}
300-
step={step}
301-
totalSteps={steps.length}
302-
onCloseCards={onCloseCards}
303-
onShowAll={onShowAll}
304-
onShrinkExpandCards={onShrinkExpandCards}
305-
/>
306-
<div className={expanded ? styles.stepBody : styles.hidden}>
307-
{steps[step].deckIds ? (
308-
<PreviewsStep
309-
content={content}
310-
deckIds={steps[step].deckIds}
311-
onActivateDeckFactory={onActivateDeckFactory}
312-
onShowAll={onShowAll}
296+
<div className={styles.cardContainer}>
297+
<div className={styles.card}>
298+
<CardHeader
299+
expanded={expanded}
300+
step={step}
301+
totalSteps={steps.length}
302+
onCloseCards={onCloseCards}
303+
onShowAll={onShowAll}
304+
onShrinkExpandCards={onShrinkExpandCards}
305+
/>
306+
<div className={expanded ? styles.stepBody : styles.hidden}>
307+
{steps[step].deckIds ? (
308+
<PreviewsStep
309+
content={content}
310+
deckIds={steps[step].deckIds}
311+
onActivateDeckFactory={onActivateDeckFactory}
312+
onShowAll={onShowAll}
313+
/>
314+
) : (
315+
steps[step].video ? (
316+
<VideoStep
317+
dragging={dragging}
318+
video={translateVideo(steps[step].video, locale)}
313319
/>
314320
) : (
315-
steps[step].video ? (
316-
<VideoStep
317-
dragging={dragging}
318-
video={translateVideo(steps[step].video, locale)}
319-
/>
320-
) : (
321-
<ImageStep
322-
image={translateImage(steps[step].image, locale)}
323-
title={steps[step].title}
324-
/>
325-
)
326-
)}
327-
{steps[step].trackingPixel && steps[step].trackingPixel}
328-
</div>
329-
<NextPrevButtons
330-
expanded={expanded}
331-
isRtl={isRtl}
332-
onNextStep={step < steps.length - 1 ? onNextStep : null}
333-
onPrevStep={step > 0 ? onPrevStep : null}
334-
/>
321+
<ImageStep
322+
image={translateImage(steps[step].image, locale)}
323+
title={steps[step].title}
324+
/>
325+
)
326+
)}
327+
{steps[step].trackingPixel && steps[step].trackingPixel}
335328
</div>
329+
<NextPrevButtons
330+
expanded={expanded}
331+
isRtl={isRtl}
332+
onNextStep={step < steps.length - 1 ? onNextStep : null}
333+
onPrevStep={step > 0 ? onPrevStep : null}
334+
/>
336335
</div>
337-
</Draggable>
338-
</Box>
336+
</div>
337+
</Draggable>
338+
/* </Box> */
339339
);
340340
};
341341

0 commit comments

Comments
 (0)