fix(ext/vault): friendly error block in fullscreen tab (closes B2)
Replaces raw escapeHtml(state.error) renders with lookupErrorCopy()-driven title/body/CTA blocks. vault_locked specifically gets an 'Unlock vault' CTA that refocuses the passphrase input. Other CTAs route to setup.html or chrome.runtime.reload(). Closes B2; concludes P4.
This commit is contained in:
@@ -144,6 +144,30 @@ body {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.error-block {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 12px 16px;
|
||||
border: 1px solid rgba(171, 43, 32, 0.4);
|
||||
border-radius: 6px;
|
||||
background: rgba(171, 43, 32, 0.08);
|
||||
margin-top: 12px;
|
||||
}
|
||||
.error-block .error-title {
|
||||
font-weight: 600;
|
||||
color: var(--danger);
|
||||
}
|
||||
.error-block .error-body {
|
||||
color: var(--text);
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
.error-block .error-cta {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.btn {
|
||||
display: inline-block;
|
||||
|
||||
Reference in New Issue
Block a user