Skip to content

Commit

Permalink
fix(Dialog): incorrect min height
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Sep 21, 2020
1 parent 9279965 commit bf1f0f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dialog/Dialog.js
Expand Up @@ -118,11 +118,12 @@ export default createComponent({

const { title, message, allowHtml, messageAlign } = props;
if (message) {
const hasTitle = title || slots.title;
return (
<div class={bem('content', { isolated: !slots.title })}>
<div class={bem('content', { isolated: !hasTitle })}>
<div
class={bem('message', {
'has-title': slots.title || title,
'has-title': hasTitle,
[messageAlign]: messageAlign,
})}
{...{
Expand Down

0 comments on commit bf1f0f5

Please sign in to comment.