Storybook Image fixes

This commit is contained in:
adilallo
2025-08-28 14:29:04 -06:00
parent 6a66f5f61f
commit 4d8e735398
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@
import React from "react"; import React from "react";
import ContentLockup from "./ContentLockup"; import ContentLockup from "./ContentLockup";
import MiniCard from "./MiniCard"; import MiniCard from "./MiniCard";
import Image from "next/image";
const FeatureGrid = ({ title, subtitle, className = "" }) => { const FeatureGrid = ({ title, subtitle, className = "" }) => {
return ( return (
+6 -1
View File
@@ -1,6 +1,7 @@
"use client"; "use client";
import React from "react"; import React from "react";
import Image from "next/image";
const MiniCard = ({ const MiniCard = ({
children, children,
@@ -23,7 +24,7 @@ const MiniCard = ({
{/* Content for the inner panel */} {/* Content for the inner panel */}
{panelContent && ( {panelContent && (
<div className="flex items-center justify-center w-full h-full"> <div className="flex items-center justify-center w-full h-full">
<img <Image
src={panelContent} src={panelContent}
alt={ alt={
ariaLabel || ariaLabel ||
@@ -32,6 +33,10 @@ const MiniCard = ({
"Feature icon" "Feature icon"
} }
className="max-w-[58px] max-h-[58px] w-auto h-auto object-contain" className="max-w-[58px] max-h-[58px] w-auto h-auto object-contain"
unoptimized
width={0}
height={0}
sizes="100vw"
/> />
</div> </div>
)} )}