Sweetalert2: Change min-height of modal

Created on 29 Sep 2017  路  3Comments  路  Source: sweetalert2/sweetalert2

Hi, i am try to change min-height after modal rendered; I already tried the function height: 200, and through custom class using customClass: 'reciept-print-modal', without success...

Is there any way to change the height of swal({ });?

Most helpful comment

.sweet-alert

why don't you inspect the modal for the correct class-name? :) It's .swal2-modal, here's the example of setting min-height: https://jsfiddle.net/ad3quksn/130/

All 3 comments

Are you asking about setting height or min-height?

@limonte about min-height ckeck my problem

selecao_001
selecao_002

I'm trying to change by css but without success
.sweet-alert { height: 491px; margin-bottom: 5%; padding: 20px 20px 0px 20px; }

.sweet-alert

why don't you inspect the modal for the correct class-name? :) It's .swal2-modal, here's the example of setting min-height: https://jsfiddle.net/ad3quksn/130/

Was this page helpful?
0 / 5 - 0 ratings