sweet-modal-vue
sweet-modal-vue copied to clipboard
title position changed
when I updated from v1.2.0 to v2.0.0, the title position changed near the top of title area,

and I fixed that with css style
.sweet_modal .sweet_title { display: flex; align-item: center; }
It's useful to me.
@Chiyaoching - Typo in your workaround.
.sweet-modal .sweet-title { display: flex; align-item:center; }
Although that doesn't work for me. I found the only way was to set the line height of the h2
.sweet-modal .sweet-title > h2 { line-height: 64px; }
Can anyone of you provide a small example project where this happens? We had this issue before but only switched between "fixes" and I'd like to fix it once and for all 🙃
I'm using with bootstrap and it have similar issue. My workaround similar to @bluefirex
.sweet-modal .sweet-title > h2 { line-height: inherit; }
This hasn't still be fixed right? I was just facing the same issue. The problem I think comes from the styles not being applied to the h2 inside .sweet-title, but rather to the .sweet-title div. So if the website defines styles for h2, those override sweet modal's.
Same issue, and it look like this:
