Skip to content

Commit bddd242

Browse files
authored
Merge pull request #91 from back4app/fix_modal_title_icon_align
fix: Modal header title and icon vertical align
2 parents fdca975 + 9095183 commit bddd242

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/components/Modal/Modal.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ let Modal = (({
7474
<Popover fadeIn={true} fixed={true} position={origin} modal={true} color='rgba(17,13,17,0.8)'>
7575
<div className={[styles.modal, styles[type]].join(' ')} style={{ width }}>
7676
<div className={styles.header}>
77-
<div style={{top: React.Children.count(subtitle) === 0 ? '37px' : '25px'}} className={styles.title}>{title}</div>
77+
<div style={{top: React.Children.count(subtitle) === 0 ? '29px' : '25px'}} className={styles.title}>{title}</div>
7878
<div className={styles.subtitle}>{subtitle}</div>
7979
{icon ?
8080
<div className={styles.icon}>

src/components/Modal/Modal.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
position: absolute;
4444
font-size: 14px;
4545
color: white;
46-
top: 49px;
46+
top: 54px;
4747
left: 28px;
4848
}
4949

@@ -61,10 +61,6 @@
6161
top: 50%;
6262
transform-origin: bottom center;
6363
@include transform(translateY(-50%));
64-
65-
use {
66-
transform: translateY(50%);
67-
}
6864
}
6965
}
7066

0 commit comments

Comments
 (0)