ui: improve waiting for keys layout in editor

This commit is contained in:
Mo Bitar
2020-09-25 09:56:39 -05:00
parent 83771339a5
commit 949cd55fd4
2 changed files with 29 additions and 8 deletions

View File

@@ -232,9 +232,18 @@
property="'right'"
)
.section(ng-show='self.note.errorDecrypting')
p.medium-padding(style='padding-top: 0 !important;')
| There was an error decrypting this item. Ensure you are running the
| latest version of this app, then sign out and sign back in to try again.
.sn-component#error-decrypting-container
.sk-panel#error-decrypting-panel
.sk-panel-header
.sk-panel-header-title {{self.note.waitingForKey ? 'Waiting for Key' : 'Unable to Decrypt'}}
.sk-panel-content
.sk-panel-section
p.sk-p(ng-if='self.note.waitingForKey')
| This note is awaiting its encryption key to be ready. Please wait for syncing to complete
| for this note to be decrypted.
p.sk-p(ng-if='!self.note.waitingForKey')
| There was an error decrypting this item. Ensure you are running the
| latest version of this app, then sign out and sign back in to try again.
#editor-pane-component-stack(ng-show='self.note')
#component-stack-menu-bar.sk-app-bar.no-edges(ng-if='self.state.stackComponents.length')
.left

View File

@@ -15,6 +15,18 @@ $heading-height: 75px;
color: var(--sn-stylekit-editor-foreground-color);
}
#error-decrypting-container {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
padding: 16px;
}
#error-decrypting-panel {
max-width: 500px;
}
#editor-title-bar {
width: 100%;
@@ -41,7 +53,7 @@ $heading-height: 75px;
> .input {
float: left;
text-overflow:ellipsis;
text-overflow: ellipsis;
width: 100%;
font-weight: bold;
border: none;
@@ -53,7 +65,6 @@ $heading-height: 75px;
color: var(--sn-stylekit-editor-foreground-color);
}
}
}
#save-status {
@@ -69,7 +80,8 @@ $heading-height: 75px;
text-align: right;
white-space: nowrap;
.desc, .message:not(.warning):not(.danger) {
.desc,
.message:not(.warning):not(.danger) {
// color: var(--sn-stylekit-editor-foreground-color);
opacity: 0.35;
}
@@ -97,7 +109,6 @@ $heading-height: 75px;
}
}
.tags-input {
background-color: transparent;
color: var(--sn-stylekit-foreground-color);
@@ -107,7 +118,8 @@ $heading-height: 75px;
}
}
.editor-content, #editor-content {
.editor-content,
#editor-content {
flex: 1;
z-index: $z-index-editor-content;
overflow-y: hidden;