mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
Fix remaining Modal styles
This commit is contained in:
parent
7e74c4a105
commit
8cde05fdc8
2 changed files with 5 additions and 4 deletions
|
@ -317,7 +317,7 @@ var Navigation = React.createClass({
|
|||
</ul>
|
||||
<Modal isOpen={this.state.canceledDeletionOpen}
|
||||
onRequestClose={this.closeCanceledDeletion}
|
||||
frameSettings={{padding: 15}}>
|
||||
style={{content:{padding: 15}}}>
|
||||
<h4>Your Account Will Not Be Deleted</h4>
|
||||
<p>
|
||||
Your account was scheduled for deletion but you logged in. Your account has been reactivated.
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
var injectIntl = require('react-intl').injectIntl;
|
||||
var omit = require('lodash.omit');
|
||||
var React = require('react');
|
||||
var render = require('../../lib/render.jsx');
|
||||
|
||||
|
@ -290,6 +291,7 @@ var Splash = injectIntl(React.createClass({
|
|||
var showEmailConfirmation = (
|
||||
this.state.session.user && this.state.session.flags.has_outstanding_email_confirmation &&
|
||||
this.state.session.flags.confirm_email_banner);
|
||||
var emailConfirmationStyle = {width: 500, height: 330, padding: 1};
|
||||
return (
|
||||
<div className="splash">
|
||||
{showEmailConfirmation ? [
|
||||
|
@ -303,11 +305,10 @@ var Splash = injectIntl(React.createClass({
|
|||
<Modal key="emailConfirmationModal"
|
||||
isOpen={this.state.emailConfirmationModalOpen}
|
||||
onRequestClose={this.hideEmailConfirmationModal}
|
||||
frameSettings={{width: 500, height: 330, padding: 1}}>
|
||||
style={{content: emailConfirmationStyle}}>
|
||||
<iframe
|
||||
src="/accounts/email_resend_standalone/"
|
||||
width="500"
|
||||
height="330" />
|
||||
{...omit(emailConfirmationStyle, 'padding')} />
|
||||
</Modal>
|
||||
] : []}
|
||||
<div key="inner" className="inner">
|
||||
|
|
Loading…
Reference in a new issue