style: 💄 Allarga la dialog automaticamente quando richiede spazio

This commit is contained in:
Maicol Battistini 2023-06-17 15:03:59 +02:00
parent 0668fabc41
commit b7e352c539
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ export default abstract class Dialog<A extends DialogAttributes = DialogAttribut
public view(vnode: Vnode<A, this>): Children {
return (
<md-dialog {...vnode.attrs} open={this.open()}>
<md-dialog style={{
'--md-dialog-container-max-block-size': 'calc(100% - 48px)',
'--md-dialog-container-max-inline-size': 'calc(100% - 48px)'
}} {...vnode.attrs} open={this.open()}>
{this.contents(vnode) ?? vnode.children}
</md-dialog>
);