This repository was archived by the owner on Jan 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,6 @@ You can configure a few things by editing the file `src/config/index.tsx`.
22
22
- ` FILE_EXTENSION ` - The filetypes supported. Default ` png ` .
23
23
- ` FILE_MIME ` - The file mime type. Default ` image/png ` .
24
24
- ` SHOW_TITLE ` - If the title should be overlaid. Default ` true ` .
25
+ - ` MAX_WIDTH ` - The maximum width of the image column. Default ` 320 ` .
25
26
26
27
You can also adjust the title field formatter here: ` src/utils/images.ts ` .
Original file line number Diff line number Diff line change 1
1
/* eslint-disable @next/next/no-img-element */
2
2
import { getTitle } from "@/utils/images" ;
3
- import { SHOW_TITLE } from "@/config" ;
3
+ import { MAX_WIDTH , SHOW_TITLE } from "@/config" ;
4
4
5
5
import styles from "./ImageStack.module.css" ;
6
6
@@ -9,7 +9,12 @@ interface Props {
9
9
}
10
10
11
11
export const ImageStack = ( { images = [ ] } : Props ) => (
12
- < ul className = { styles . list } >
12
+ < ul
13
+ className = { styles . list }
14
+ style = { {
15
+ maxWidth : MAX_WIDTH ,
16
+ } }
17
+ >
13
18
{ images . map ( ( image ) => (
14
19
< li key = { image } >
15
20
{ SHOW_TITLE && < h2 > { getTitle ( image ) } </ h2 > }
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ export const POLL_INTERVAL = 5 * 1000;
4
4
export const FILE_EXTENSION = "png" ;
5
5
export const FILE_MIME = "image/png" ;
6
6
export const SHOW_TITLE = true ;
7
+ export const MAX_WIDTH = 320 ;
You can’t perform that action at this time.
0 commit comments