mirror of https://github.com/vector-im/riot-web
Merge pull request #4659 from matrix-org/t3chguy/dialog_cancel_space
Dialog wrap title instead of taking same space as the close/cancel buttonpull/21833/head
commit
3f76b73b50
|
@ -335,6 +335,9 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
|
||||||
.mx_Dialog_header.mx_Dialog_headerWithButton > .mx_Dialog_title {
|
.mx_Dialog_header.mx_Dialog_headerWithButton > .mx_Dialog_title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.mx_Dialog_header.mx_Dialog_headerWithCancel > .mx_Dialog_title {
|
||||||
|
margin-right: 20px; // leave space for the 'X' cancel button
|
||||||
|
}
|
||||||
|
|
||||||
.mx_Dialog_title.danger {
|
.mx_Dialog_title.danger {
|
||||||
color: $warning-color;
|
color: $warning-color;
|
||||||
|
|
|
@ -144,6 +144,7 @@ export default createReactClass({
|
||||||
>
|
>
|
||||||
<div className={classNames('mx_Dialog_header', {
|
<div className={classNames('mx_Dialog_header', {
|
||||||
'mx_Dialog_headerWithButton': !!this.props.headerButton,
|
'mx_Dialog_headerWithButton': !!this.props.headerButton,
|
||||||
|
'mx_Dialog_headerWithCancel': !!cancelButton,
|
||||||
})}>
|
})}>
|
||||||
<div className={classNames('mx_Dialog_title', this.props.titleClass)} id='mx_BaseDialog_title'>
|
<div className={classNames('mx_Dialog_title', this.props.titleClass)} id='mx_BaseDialog_title'>
|
||||||
{headerImage}
|
{headerImage}
|
||||||
|
|
Loading…
Reference in New Issue