diff --git a/apps/business/src/components/WebsiteStaticImageGallery.module.css b/apps/business/src/components/WebsiteStaticImageGallery.module.css index dd8c462..b905b8b 100644 --- a/apps/business/src/components/WebsiteStaticImageGallery.module.css +++ b/apps/business/src/components/WebsiteStaticImageGallery.module.css @@ -65,6 +65,18 @@ cursor: pointer; } +/* Checkerboard so white/transparent PNG icons stay visible in the CMS. */ +.imageButtonTransparent { + background-color: #64748b; + background-image: + linear-gradient(45deg, #475569 25%, transparent 25%), + linear-gradient(-45deg, #475569 25%, transparent 25%), + linear-gradient(45deg, transparent 75%, #475569 75%), + linear-gradient(-45deg, transparent 75%, #475569 75%); + background-size: 16px 16px; + background-position: 0 0, 0 8px, 8px -8px, -8px 0; +} + .image { width: 100%; height: 100%; diff --git a/apps/business/src/components/WebsiteStaticImageGallery.tsx b/apps/business/src/components/WebsiteStaticImageGallery.tsx index f820bb4..d566c91 100644 --- a/apps/business/src/components/WebsiteStaticImageGallery.tsx +++ b/apps/business/src/components/WebsiteStaticImageGallery.tsx @@ -3,6 +3,7 @@ import { useLocale } from '@meshkee/dashboard-ui' import { useT } from '../i18n/useT' import type { WebsiteStaticImageItem } from '../types/websiteStaticImage' import { cssAspectRatio, slotPreviewSize } from '../utils/aspectRatio' +import { isPngImageUrl } from '../utils/imageUpload' import { Tooltip } from './Tooltip' import controlStyles from './CategoryRow.module.css' import styles from './WebsiteStaticImageGallery.module.css' @@ -106,7 +107,7 @@ export function WebsiteStaticImageGallery({