Skip to content

Commit 9f74742

Browse files
authored
fix: rm unnecessary h-fit (#34)
1 parent 282c3f1 commit 9f74742

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/components/ImageSection.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ interface Props {
1111

1212
export default function ImageSection({ width, height, className, alt, src, subtitle }: Props) {
1313
return (
14-
<div className="[&_img]:m-0 mx-auto [&>span]:w-fit flex flex-col justify-start bg-neutral-100 dark:bg-neutral-900 border border-neutral-200 dark:border-neutral-800 rounded-lg p-2 max-w-2xl mb-4">
14+
<div className="mx-auto mb-4 flex max-w-2xl flex-col justify-start rounded-lg border border-neutral-200 bg-neutral-100 p-2 dark:border-neutral-800 dark:bg-neutral-900 [&>span]:w-fit [&_img]:m-0">
1515
<ImageZoom
1616
width={width}
1717
height={height}
18-
className={`mx-auto max-w-full w-auto h-fit min-w-content rounded-md ${className}`}
18+
className={`min-w-content mx-auto w-auto max-w-full rounded-md ${className ?? ""}`}
1919
alt={alt ?? ""}
2020
src={src}
2121
/>
2222
{subtitle ? (
23-
<div className="mx-auto break-words whitespace-normal opacity-50 flex-shrink mt-2 text-center text-pretty text-sm">
23+
<div className="mx-auto mt-2 flex-shrink whitespace-normal text-pretty break-words text-center text-sm opacity-50">
2424
{subtitle}
2525
</div>
2626
) : null}

0 commit comments

Comments
 (0)