mirror of
https://github.com/ascribe/onion.git
synced 2024-11-13 16:45:05 +01:00
width styling of forms
This commit is contained in:
parent
9ba30f0938
commit
c54bbe231f
@ -5,7 +5,7 @@ import Router from 'react-router';
|
||||
|
||||
import Form from './ascribe_forms/form';
|
||||
import Property from './ascribe_forms/property';
|
||||
|
||||
import FormPropertyHeader from './ascribe_forms/form_property_header';
|
||||
import apiUrls from '../constants/api_urls';
|
||||
|
||||
import GlobalNotificationModel from '../models/global_notification_model';
|
||||
@ -25,9 +25,6 @@ let PasswordResetContainer = React.createClass({
|
||||
if (this.props.query.email && this.props.query.token) {
|
||||
return (
|
||||
<div>
|
||||
<div className="ascribe-login-text ascribe-login-header">
|
||||
{getLangText('Reset the password for')} {this.props.query.email}
|
||||
</div>
|
||||
<PasswordResetForm
|
||||
email={this.props.query.email}
|
||||
token={this.props.query.token}/>
|
||||
@ -38,9 +35,6 @@ let PasswordResetContainer = React.createClass({
|
||||
if (this.state.isRequested === false) {
|
||||
return (
|
||||
<div>
|
||||
<div className="ascribe-login-text ascribe-login-header">
|
||||
{getLangText('Reset your password')}
|
||||
</div>
|
||||
<PasswordRequestResetForm
|
||||
handleRequestSuccess={this.handleRequestSuccess}/>
|
||||
</div>
|
||||
@ -86,6 +80,9 @@ let PasswordRequestResetForm = React.createClass({
|
||||
<img src="https://s3-us-west-2.amazonaws.com/ascribe0/media/thumbnails/ascribe_animated_medium.gif" />
|
||||
</span>
|
||||
}>
|
||||
<FormPropertyHeader>
|
||||
<h3>{getLangText('Reset your password')}</h3>
|
||||
</FormPropertyHeader>
|
||||
<Property
|
||||
name='email'
|
||||
label={getLangText('Email')}>
|
||||
@ -133,6 +130,9 @@ let PasswordResetForm = React.createClass({
|
||||
<img src="https://s3-us-west-2.amazonaws.com/ascribe0/media/thumbnails/ascribe_animated_medium.gif" />
|
||||
</span>
|
||||
}>
|
||||
<FormPropertyHeader>
|
||||
<h3>{getLangText('Reset the password for')} {this.props.email}</h3>
|
||||
</FormPropertyHeader>
|
||||
<Property
|
||||
name='password'
|
||||
label={getLangText('Password')}>
|
||||
|
@ -32,7 +32,7 @@ let SettingsContainer = React.createClass({
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<div className="settings-container">
|
||||
<AccountSettings />
|
||||
<APISettings />
|
||||
<BitcoinWalletSettings />
|
||||
@ -297,10 +297,10 @@ let APISettings = React.createClass({
|
||||
name={app.name}
|
||||
label={app.name}>
|
||||
<div className="row-same-height">
|
||||
<div className="no-padding col-xs-6 col-xs-height col-middle">
|
||||
<div className="no-padding col-xs-6 col-sm-10 col-xs-height col-middle">
|
||||
{'Bearer ' + app.bearer_token.token}
|
||||
</div>
|
||||
<div className="col-xs-6 col-xs-height">
|
||||
<div className="col-xs-6 col-sm-2 col-xs-height">
|
||||
<button
|
||||
className="pull-right btn btn-default btn-sm"
|
||||
onClick={this.handleTokenRefresh}
|
||||
|
@ -1,3 +1,7 @@
|
||||
.settings-container{
|
||||
max-width: 600px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.ascribe-settings-wrapper {
|
||||
width: 100%;
|
||||
|
@ -44,6 +44,11 @@ hr {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
form{
|
||||
max-width: 600px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#main {
|
||||
height: 100%;
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
.wp {
|
||||
height: 100%;
|
||||
|
||||
max-width: 90%;
|
||||
margin: auto;
|
||||
/* We need this, otherwise piece list will have a scrollbar */
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user