Blazorise: Modal Width

Created on 12 Dec 2019  Â·  9Comments  Â·  Source: stsrki/Blazorise

Is there a way to increase the modal width further than Size="ModalSize.ExtraLarge" in ModalContent?

Thank you,

Medium Feature Request â›±

All 9 comments

I think your best option is to modify Bootstrap css class .modal-xl to increase the width.

I would like not to change the bootstrap class. Maybe with attribute splatting next release it is possible. Will test it next realease

Attribute splatting is already possible. It was released with 0.8.7

@WillianGruber Have you tested attribute splatting?

Not yet. I'm busy generating dynamic screens with RenderTreeFragment and Blazorise components.
Will look at this issue again in some days

I managed to increase the width changing the max-width in this tag:
image
Unfortunatelly it is innaccessible through splatting.

I see. So basically the reason why splatting is not working is because I usually apply it to the tag that have ClassNames. And in this case it's the inner tag for bootstrap implementation.

@inherits BootstrapBase.BaseBootstrapModalContent
<div class="@DialogClassNames" role="document">
    <div class="@ClassNames" @attributes="@Attributes">
        @ChildContent
    </div>
</div>

I will need to see what can be done to apply it to the first tag also.

One option is to steal some of the keys(stributes) from Attributes dictionary and apply it to the right place. In this case the steal the max-width.

Better option it so add MaxWidth property and set it to the right place.

I plan to refactor Modal, so this ticket will be done in the next milestone.

973

Was this page helpful?
0 / 5 - 0 ratings

Related issues

imtrobin picture imtrobin  Â·  4Comments

hybrid2102 picture hybrid2102  Â·  3Comments

john-cullen picture john-cullen  Â·  3Comments

danielheddelin picture danielheddelin  Â·  5Comments

njannink picture njannink  Â·  4Comments