zuramai / mazer

Free and Open-source Bootstrap 5 Admin Dashboard Template and Landing Page

Home Page:http://zuramai.github.io/mazer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The input tag is long beyond the modal.

EKAPHONG opened this issue · comments

The input tag is long beyond the modal.
Screenshort:
image

Hello, after I checked the following page https://zuramai.github.io/mazer/demo/extra-component-sweetalert.html, I didn't find a long input size. Take a look at the following screenshot...

image

Try doing the following steps

  1. Refresh your browser page
  2. Try updating the repository by running the git pull command

@bilal it looks fine in dark mode. try the light mode to see it.
btw, other alert inputs have the same problem too

After just checking, it is true that there is a bug in light mode. Please open the file assets/static/js/pages/sweetalert2.js there is a customClass for input. If you delete customClass input or delete the contents of customClass > input then the bug will disappear.

const Swal2 = Swal.mixin({
  customClass: {
    input: 'form-control'
  }
})

then change the code above to:

const Swal2 = Swal.mixin({
  customClass: {
    input: ''
  }
})

I haven't found another solution yet.

Another alternative is to change the width of the .form-control class to initial. An example is like this

.form-control {
   width: 100%;
}

then change it to

.form-control {
   width: initial;
}