diff --git a/src/components/cards/card.css b/src/components/cards/card.css index 34ae652a0..dd8879482 100644 --- a/src/components/cards/card.css +++ b/src/components/cards/card.css @@ -2,6 +2,11 @@ @import "../../css/colors.css"; @import "../../css/z-index.css"; +.card-container-overlay { + position: fixed; + z-index: $z-index-card; +} + .card-container { position:absolute; z-index: $z-index-card; @@ -9,12 +14,6 @@ min-width: 468px; } -.card-container-overlay { - margin: auto; - pointer-events: none; - overflow: hidden; -} - .left-card, .right-card { height: 90%; position: absolute; diff --git a/src/components/cards/cards.jsx b/src/components/cards/cards.jsx index a3682f4aa..30ae5d4f9 100644 --- a/src/components/cards/cards.jsx +++ b/src/components/cards/cards.jsx @@ -3,7 +3,6 @@ import React, {Fragment} from 'react'; import classNames from 'classnames'; import {FormattedMessage} from 'react-intl'; import Draggable from 'react-draggable'; -// import Box from '../box/box.jsx'; import styles from './card.css'; @@ -278,64 +277,65 @@ const Cards = props => { const steps = content[activeDeckId].steps; return ( - /* */ - -
-
- -
- {steps[step].deckIds ? ( - - ) : ( - steps[step].video ? ( - +
+
+ +
+ {steps[step].deckIds ? ( + ) : ( - - ) - )} - {steps[step].trackingPixel && steps[step].trackingPixel} + steps[step].video ? ( + + ) : ( + + ) + )} + {steps[step].trackingPixel && steps[step].trackingPixel} +
+ 0 ? onPrevStep : null} + />
- 0 ? onPrevStep : null} - />
-
- - /* */ + +
); };