AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
style(ai): refine Enter shortcut hint (#236)
tianma-if9628fd8c3557
diff --git a/apps/web/src/components/dialogs/AiAssistantDialog.tsx b/apps/web/src/components/dialogs/AiAssistantDialog.tsxindex 5a1e813e..db10f3c4 100644--- a/apps/web/src/components/dialogs/AiAssistantDialog.tsx+++ b/apps/web/src/components/dialogs/AiAssistantDialog.tsx@@ -493,8 +493,8 @@ export const AiAssistantDialog = ({<Button type="button" variant="solid" className="h-10 min-w-0 w-full gap-1.5 whitespace-nowrap px-3 text-sm font-semibold" disabled={generateDisabled} onClick={() => void generate()}><Sparkles className="h-4 w-4 shrink-0" />{t("aiAssistant.generate")}- <kbd aria-hidden="true" className="ml-0.5 rounded border border-emerald-300/60 bg-emerald-600/35 px-1 py-0.5 text-[10px] font-medium leading-none text-emerald-50">- Enter+ <kbd aria-hidden="true" className="ml-0.5 rounded bg-white/10 px-1 py-0.5 text-[10px] font-medium leading-none text-white/65">+ ↵</kbd></Button>)}diff --git a/tests/e2e/ai-custom-prompts.spec.ts b/tests/e2e/ai-custom-prompts.spec.tsindex 9dfc0b39..10e11f75 100644--- a/tests/e2e/ai-custom-prompts.spec.ts+++ b/tests/e2e/ai-custom-prompts.spec.ts@@ -359,7 +359,7 @@ test.describe("AI custom prompts", () => {await textarea.fill("写个宋词");const generateButton = dialog.getByRole("button", { name: "生成", exact: true });await expect(generateButton).toBeEnabled();- await expect(generateButton.locator("kbd")).toHaveText("Enter");+ await expect(generateButton.locator("kbd")).toHaveText("↵");await textarea.press("Shift+Enter");await textarea.pressSequentially("不要参考原笔记");