Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #928 from blockchain/input-width
Browse files Browse the repository at this point in the history
decrease text input widths in settings
  • Loading branch information
plondon committed Jan 30, 2017
2 parents d082e8e + a56cb6e commit a083121
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
13 changes: 8 additions & 5 deletions app/partials/settings/preferences.jade
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ h5.well.em-400.type-h5.hidden-xs(translate="PREFERENCES_EXPLAIN")
span.label.label-success(translate="VERIFIED", ng-show="user.isEmailVerified")
p.text.em-300.hidden-xs(translate="EMAIL_ADDRESS_EXPLAIN")
p.text.em-400.hidden-xs.security-red(translate="CHANGE_EMAIL_NOT_EXCHANGE" ng-show="userHasExchangeAcct && active")
.col-sm-12.col-md-6.setting-result(ng-hide="active")
.col-sm-0.col-md-2
.col-sm-12.col-md-4.setting-result(ng-hide="active")
p.em-400.type-h5.mbm {{ user.email }}
a.button-primary.display-inline-block(ng-click="activate()", translate="CHANGE")
.col-sm-12.col-md-6.flex-column(ng-show="active")
.col-sm-12.col-md-4.flex-column(ng-show="active")
include ./change-email.jade
.right-align.mtm
resend-email-confirmation.mtl(ng-hide="user.isEmailVerified")
Expand All @@ -25,7 +26,8 @@ h5.well.em-400.type-h5.hidden-xs(translate="PREFERENCES_EXPLAIN")
span.label.label-warning(translate="UNVERIFIED", ng-show="!user.isMobileVerified")
span.label.label-success(translate="VERIFIED", ng-show="user.isMobileVerified")
p.text.em-300.hidden-xs(translate="MOBILE_NUMBER_EXPLAIN")
.col-sm-12.col-md-6.setting-result
.col-sm-0.col-md-2
.col-sm-12.col-md-4.setting-result
div(ng-show="mobileNumber.step == 0")
//- Don't use one-time binding for mobileNumber
p.em-400.type-h5.mbm(ng-hide="user.mobileNumber.length < 5") {{ formattedMobileNumber }}
Expand Down Expand Up @@ -87,10 +89,11 @@ h5.well.em-400.type-h5.hidden-xs(translate="PREFERENCES_EXPLAIN")
.col-sm-12.col-md-6
label.type-h5.em-400(translate="AUTO_LOGOUT")
p.em-300.text.hidden-sm.hidden-xs(translate="AUTO_LOGOUT_EXPLAIN")
.col-sm-12.col-md-6.setting-result(ng-hide="active")
.col-sm-0.col-md-3
.col-sm-12.col-md-3.setting-result(ng-hide="active")
p.em-400.type-h5.mbm {{ settings.logoutTimeMinutes }} minutes
a.button-primary.display-inline-block(ng-click="activate()", translate="CHANGE")
.col-sm-12.col-md-6(ng-show="active")
.col-sm-12.col-md-3(ng-show="active")
include ./change-logout.jade

.form-group.mbn.border-bottom.clearfix.pvl.phm(data-preflight-tag="ChangeTheme")
Expand Down
15 changes: 9 additions & 6 deletions app/partials/settings/security.jade
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ h5.well.type-h5.em-400.hidden-xs(translate="SECURITY_BASIC_EXPLAIN")
label.em-400.type-h5.mbn(translate="WALLET_PASSWORD")
span.label.label-success(translate="PASSWORD_SET")
p.text.em-300.hidden-xs(translate="WALLET_PASSWORD_EXPLAIN")
.col-sm-12.col-md-6.setting-result.mtm(ng-hide="active")
.col-sm-0.col-md-2
.col-sm-12.col-md-4.setting-result.mtm(ng-hide="active")
a.button-primary.display-inline-block(ng-click="activate()", translate="CHANGE")
.col-sm-12.col-md-6(ng-show="active")
.col-sm-12.col-md-4(ng-show="active")
include ./change-password.jade
.form-group.mbn.border-bottom.clearfix.pvl.phm(ng-class="{'has-error':errors.passwordHint}" ng-controller="ChangePasswordHintCtrl" data-preflight-tag="ChangePasswordHint")
div(settings-form)
Expand All @@ -30,10 +31,11 @@ h5.well.type-h5.em-400.hidden-xs(translate="SECURITY_BASIC_EXPLAIN")
span.label.label-warning(translate="NOT_STORED", ng-show="!user.passwordHint")
span.label.label-success(translate="HINT_STORED", ng-show="user.passwordHint")
p.text.em-300.hidden-xs(translate="PASSWORD_HINT_EXPLAIN")
.col-sm-12.col-md-6.setting-result(ng-hide="active")
.col-sm-0.col-md-2
.col-sm-12.col-md-4.setting-result(ng-hide="active")
p.em-400.type-h5.mbm {{ user.passwordHint }}
a.button-primary.display-inline-block(ng-click="activate()", translate="CHANGE")
.col-sm-12.col-md-6(ng-show="active")
.col-sm-12.col-md-4(ng-show="active")
include ./change-password-hint.jade

.form-group.mbn.border-bottom.clearfix.pvl.phm(ng-controller="ManageSecondPasswordCtrl" data-preflight-tag="ManageSecondPassword")
Expand All @@ -45,10 +47,11 @@ h5.well.type-h5.em-400.hidden-xs(translate="SECURITY_BASIC_EXPLAIN")
span.label.label-success(translate="SECOND_PASSWORD_SET", ng-show="settings.secondPassword")
p.em-300.text.hidden-xs(translate="WALLET_SECOND_PASSWORD_EXPLAIN" ng-hide="userHasExchangeAcct")
p.em-300.text.hidden-xs(translate="WALLET_SECOND_PASSWORD_DISABLED_EXPLAIN" ng-show="userHasExchangeAcct")
.col-sm-12.col-md-6.setting-result(ng-hide="active || removing")
.col-sm-0.col-md-2
.col-sm-12.col-md-4.setting-result(ng-hide="active || removing")
button.button-primary.display-inline-block(ng-click="activate()", translate="SET_SECOND_PASSWORD", ng-show="!settings.secondPassword" ng-disabled="userHasExchangeAcct")
button.button-primary.display-inline-block.mlm(ng-click="activate()" translate="REMOVE_SECOND_PASSWORD" ng-show="settings.secondPassword")
.col-sm-12.col-md-6(ng-show="active")
.col-sm-12.col-md-4(ng-show="active")
include ./manage-second-password.jade

.form-group.mbn.border-bottom.clearfix.pvl.phm(data-preflight-tag="ManageTwoFactor")
Expand Down

0 comments on commit a083121

Please sign in to comment.