Skip to content

Commit

Permalink
fix: better style and copy for challenge modal
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Sep 10, 2020
1 parent 844e853 commit 93deb92
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const STRING_INVALID_IMPORT_FILE = "Unable to open file. Ensure it is a p
export function StringImportError(errorCount: number) {
return `Import complete. ${errorCount} items were not imported because there was an error decrypting them. Make sure the password is correct and try again.`;
}
export const STRING_ENTER_ACCOUNT_PASSCODE = 'Enter your application passcode';
export const STRING_ENTER_ACCOUNT_PASSCODE = 'Enter your application passcode to decrypt your data and unlock the application';
export const STRING_ENTER_ACCOUNT_PASSWORD = 'Enter your account password';
export const STRING_ENTER_PASSCODE_FOR_MIGRATION = 'Your application passcode is required to perform an upgrade of your local data storage structure.';
export const STRING_STORAGE_UPDATE = 'Storage Update';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.sk-modal-background(ng-click="ctrl.cancel()")
#privileges-modal.challenge-modal.sk-modal-content
.challenge-modal.sk-modal-content
.sn-component
.sk-panel
.sk-panel-header
.sk-panel-header-title {{ctrl.title}}
.sk-panel-content
.sk-panel-section
div(ng-repeat="type in ctrl.state.types")
.sk-p.sk-bold.sk-panel-row.centered
.sk-p.sk-panel-row.centered.prompt
strong {{ctrl.promptForChallenge(type)}}
.sk-panel-row
input.sk-input.contrast(
Expand Down
5 changes: 5 additions & 0 deletions app/assets/stylesheets/_modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
}

.challenge-modal {
max-width: 480px;

.prompt {
text-align: center;
}
.sk-panel .sk-panel-header {
justify-content: center;
}
Expand Down

0 comments on commit 93deb92

Please sign in to comment.