Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 83b8736

Browse files
author
John Richard Chipps-Harding
authored
Fix image sizing (#13)
1 parent 643cc17 commit 83b8736

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/components/ImageStack/index.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
/* eslint-disable @next/next/no-img-element */
2-
import { CSSProperties } from "react";
3-
42
import { SHOW_TITLE } from "@/config";
53

64
import styles from "./ImageStack.module.css";
75

86
interface Props {
97
images?: string[];
10-
style?: CSSProperties;
118
}
129

13-
export const ImageStack = ({ images = [], style }: Props) => (
14-
<ul className={styles.list} style={style}>
10+
export const ImageStack = ({ images = [] }: Props) => (
11+
<ul className={styles.list}>
1512
{images.map((image) => (
1613
<li key={image}>
1714
{SHOW_TITLE && <h2>{image}</h2>}

src/pages/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ const Home: NextPage = () => {
2424
<title>Folder Stack</title>
2525
</Head>
2626
<div ref={fullscreenContainerRef} onClick={toggleFullscreen}>
27-
<ImageStack style={STACK_STYLE} images={images} />
27+
<div style={STACK_STYLE}>
28+
<ImageStack images={images} />
29+
</div>
2830
</div>
2931
</>
3032
);

0 commit comments

Comments
 (0)