diff --git a/extension/src/popup/components/item-form.ts b/extension/src/popup/components/item-form.ts index 5773e6e..c9956ae 100644 --- a/extension/src/popup/components/item-form.ts +++ b/extension/src/popup/components/item-form.ts @@ -54,12 +54,13 @@ export function renderItemForm(app: HTMLElement, mode: 'add' | 'edit'): void { function renderTypeSelection(app: HTMLElement): void { app.innerHTML = `
-
+

new item

${isInTab() ? '' : ''}
+ ${isInTab() ? '
esc to cancel
' : '
'}
${TYPE_OPTIONS.map((opt) => ` '}
+ ${isInTab() ? '
esc to cancel
' : '
'} ${state.error ? `
${escapeHtml(state.error)}
` : ''}
diff --git a/extension/src/popup/components/types/document.ts b/extension/src/popup/components/types/document.ts index cccdcf8..16531e8 100644 --- a/extension/src/popup/components/types/document.ts +++ b/extension/src/popup/components/types/document.ts @@ -85,11 +85,12 @@ export function renderForm(app: HTMLElement, mode: 'add' | 'edit', existing: Ite app.innerHTML = `
-
+
${isEdit ? 'edit document' : 'new document'}
${isInTab() ? '' : ''}
+ ${isInTab() ? '
esc to cancel
' : '
'} ${state.error ? `
${escapeHtml(state.error)}
` : ''}
diff --git a/extension/src/popup/components/types/identity.ts b/extension/src/popup/components/types/identity.ts index 90fffc3..858714f 100644 --- a/extension/src/popup/components/types/identity.ts +++ b/extension/src/popup/components/types/identity.ts @@ -134,11 +134,12 @@ export function renderForm(app: HTMLElement, mode: 'add' | 'edit', existing: Ite app.innerHTML = `
-
+
${mode === 'add' ? 'new identity' : 'edit identity'}
${isInTab() ? '' : ''}
+ ${isInTab() ? '
esc to cancel
' : '
'} ${state.error ? `
${escapeHtml(state.error)}
` : ''}
diff --git a/extension/src/popup/components/types/key.ts b/extension/src/popup/components/types/key.ts index e227870..9e73ad5 100644 --- a/extension/src/popup/components/types/key.ts +++ b/extension/src/popup/components/types/key.ts @@ -123,11 +123,12 @@ export function renderForm(app: HTMLElement, mode: 'add' | 'edit', existing: Ite app.innerHTML = `
-
+
${mode === 'add' ? 'new key' : 'edit key'}
${isInTab() ? '' : ''}
+ ${isInTab() ? '
esc to cancel
' : '
'} ${state.error ? `
${escapeHtml(state.error)}
` : ''}
diff --git a/extension/src/popup/components/types/login.ts b/extension/src/popup/components/types/login.ts index 448c163..9c9b0b6 100644 --- a/extension/src/popup/components/types/login.ts +++ b/extension/src/popup/components/types/login.ts @@ -244,11 +244,12 @@ export function renderForm(app: HTMLElement, mode: 'add' | 'edit', existing: Ite app.innerHTML = `
-
+
${mode === 'add' ? 'new login' : 'edit login'}
${isInTab() ? '' : ''}
+ ${isInTab() ? '
esc to cancel
' : '
'} ${state.error ? `
${escapeHtml(state.error)}
` : ''}
diff --git a/extension/src/popup/components/types/secure-note.ts b/extension/src/popup/components/types/secure-note.ts index 5ccf228..d3f7a35 100644 --- a/extension/src/popup/components/types/secure-note.ts +++ b/extension/src/popup/components/types/secure-note.ts @@ -112,11 +112,12 @@ export function renderForm(app: HTMLElement, mode: 'add' | 'edit', existing: Ite app.innerHTML = `
-
+
${mode === 'add' ? 'new secure note' : 'edit secure note'}
${isInTab() ? '' : ''}
+ ${isInTab() ? '
esc to cancel
' : '
'} ${state.error ? `
${escapeHtml(state.error)}
` : ''}
diff --git a/extension/src/popup/components/types/totp.ts b/extension/src/popup/components/types/totp.ts index 3649f06..3e5cd85 100644 --- a/extension/src/popup/components/types/totp.ts +++ b/extension/src/popup/components/types/totp.ts @@ -213,11 +213,12 @@ export function renderForm(app: HTMLElement, mode: 'add' | 'edit', existing: Ite const renderInner = (): string => `
-
+
${mode === 'add' ? 'new totp' : 'edit totp'}
${isInTab() ? '' : ''}
+ ${isInTab() ? '
esc to cancel
' : '
'} ${state.error ? `
${escapeHtml(state.error)}
` : ''}
diff --git a/extension/src/popup/styles.css b/extension/src/popup/styles.css index a4d07e6..8f384ac 100644 --- a/extension/src/popup/styles.css +++ b/extension/src/popup/styles.css @@ -104,6 +104,14 @@ body { font-size: 11px; } +.form-subtitle { + font-size: 11px; + color: var(--text-dim); + margin-top: 2px; + margin-bottom: 14px; + letter-spacing: 0.02em; +} + .error { color: #ab2b20; font-size: 12px; diff --git a/extension/src/vault/vault.css b/extension/src/vault/vault.css index e00dc0a..9ba1ea5 100644 --- a/extension/src/vault/vault.css +++ b/extension/src/vault/vault.css @@ -104,6 +104,14 @@ body { font-size: 11px; } +.form-subtitle { + font-size: 11px; + color: var(--text-dim); + margin-top: 2px; + margin-bottom: 14px; + letter-spacing: 0.02em; +} + .error { color: #ab2b20; font-size: 12px;