map chooser dialog with previews
This commit is contained in:
parent
a952d4227d
commit
170a7faf0f
7 changed files with 131 additions and 30 deletions
|
@ -1,12 +1,13 @@
|
|||
import {ReactNode} from "react";
|
||||
import {MouseEventHandler, ReactNode} from 'react';
|
||||
|
||||
import './Column.css'
|
||||
|
||||
export default function Column({children, className}: {
|
||||
children: ReactNode,
|
||||
className?: string
|
||||
export default function Column({children, className, onClick}: {
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
onClick?: MouseEventHandler<HTMLDivElement>;
|
||||
}) {
|
||||
return <div className={'Column flex-column ' + (className ?? '')}>
|
||||
return <div className={'Column flex-column ' + (className ?? '')} onClick={onClick}>
|
||||
{children}
|
||||
</div>
|
||||
}
|
||||
|
|
|
@ -10,4 +10,9 @@
|
|||
|
||||
gap: 16px;
|
||||
padding: 16px;
|
||||
|
||||
max-height: 75vh;
|
||||
max-width: 75vw;
|
||||
|
||||
overflow: scroll;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ export default function Dialog({children, className}: {
|
|||
children: ReactNode;
|
||||
className?: string;
|
||||
}) {
|
||||
return <Column className={'Dialog ' + className ?? ''}>
|
||||
return <Column className={'Dialog ' + (className ?? '')}>
|
||||
{children}
|
||||
</Column>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue