sticky dialog title
This commit is contained in:
parent
bacd1777be
commit
59459019fc
1 changed files with 9 additions and 7 deletions
|
|
@ -10,11 +10,13 @@ export default function Dialog({children, className, title, onClose}: {
|
|||
className?: string;
|
||||
onClose?: () => void;
|
||||
}) {
|
||||
return <Column className={'Dialog overflow-scroll ' + (className ?? '')}>
|
||||
return <Column className={'Dialog ' + (className ?? '')}>
|
||||
<Row>
|
||||
<h3 className='flex-grow'>{title}</h3>
|
||||
{onClose && <Button text='x' onClick={onClose} />}
|
||||
<h3 className="flex-grow">{title}</h3>
|
||||
{onClose && <Button text="x" onClick={onClose}/>}
|
||||
</Row>
|
||||
{children}
|
||||
</Column>
|
||||
<Column className='overflow-scroll'>
|
||||
{children}
|
||||
</Column>
|
||||
</Column>;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue