Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added client/src/assets/preview-video-ad.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed client/src/assets/preview-video-ad.png
Binary file not shown.
2 changes: 1 addition & 1 deletion client/src/pages/products/Products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import PreviewCarouselAd from "../../assets/preview-carousel-ad.png";
import PreviewCarouselGame from "../../assets/preview-carousel-game.jpg";

import IconVideoAds from "../../assets/icon-video-ads.png";
import PreviewVideoAd from "../../assets/preview-video-ad.png";
import PreviewVideoAd from "../../assets/preview-video-ad.jpg";
import PreviewVideoGame from "../../assets/preview-video-game.jpg";

import IconGameController from "../../assets/icon-game-controller.png";
Expand Down
4 changes: 4 additions & 0 deletions client/src/pages/products/ad-action/AdAction.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.closeButton {
z-index: 10;
align-self: flex-end;
border: 1px solid var(--bolt-border-primary);
border-radius: 100vh;
background: var(--bolt-surface-primary);
Expand Down Expand Up @@ -29,6 +30,9 @@
height: 100%;
border: none;
display: block;
}

.iframeCheckout {
background-color: var(--bolt-surface-primary);
}

Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/products/ad-action/AdAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function AdAction({ url, label }: AdActionProps) {
ref={iframeRef}
src={url}
className={localStyles.iframe}
sandbox="allow-scripts allow-same-origin allow-forms"
sandbox="allow-scripts allow-same-origin allow-forms allow-popups"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
title={label}
/>
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/products/ad-action/CheckoutAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function CheckoutAction({ label }: AdActionProps) {
{isModalOpen && (
<iframe
src={paymentUrl}
className={localStyles.iframe}
className={`${localStyles.iframe} ${localStyles.iframeCheckout}`}
sandbox="allow-scripts allow-same-origin allow-forms"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
title={label}
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/products/ad-action/global-modal.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.globalModal {
background: transparent;
border-width: 0;
box-sizing: content-box;
box-sizing: border-box;
flex-direction: column;
max-height: 100dvh; /* override dialog defaults */
max-width: 100dvw; /* override dialog defaults */
Expand All @@ -21,7 +21,7 @@

.globalModal[open] {
display: flex;
align-items: flex-end;
align-items: stretch;
gap: var(--bolt-space-4);
}

Expand Down
Loading