diff --git a/gl-core/cartridges/DesignSystem/components/StandardCard.tsx b/gl-core/cartridges/DesignSystem/components/StandardCard.tsx index 7fe62c21..36769e4b 100644 --- a/gl-core/cartridges/DesignSystem/components/StandardCard.tsx +++ b/gl-core/cartridges/DesignSystem/components/StandardCard.tsx @@ -36,15 +36,13 @@ export function StandardCard({ const [expanded, setExpanded] = React.useState(false); const isMobile = useIsMobile(); - function stripShortcodes(str: string | undefined) { - if (!str) return ''; - return str.replace(/\[[^\]]*\]/g, '').trim(); - } - if (!content) return null; const { title, description, image, icon } = content; + // Shared image height for consistency + const MEDIA_HEIGHT = 200; + return ( - {/* Desktop-only thumbnail when collapsed */} + {/* Thumbnail when collapsed */} {thumbnails && image && !expanded && !isMobile && ( - {/* On mobile, show the image only inside the expanded section */} + {/* Expanded image — same height as thumbnail */} {image && ( )} - + {description} diff --git a/next.config.js b/next.config.js index 8d3a2fcd..a20c8c44 100755 --- a/next.config.js +++ b/next.config.js @@ -9,7 +9,6 @@ const withPWA = require('next-pwa')({ const nextConfig = { devIndicators: false, transpilePackages: ['react-map-gl', 'mapbox-gl'], - images: { remotePatterns: [ {