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
fix: keep pre-upgrade visuals after Tailwind 4
tianma-ifcb1213400f54
diff --git a/apps/web/src/components/AssetsPane.tsx b/apps/web/src/components/AssetsPane.tsxindex 1dd602a9..fae8b558 100644--- a/apps/web/src/components/AssetsPane.tsx+++ b/apps/web/src/components/AssetsPane.tsx@@ -333,7 +333,7 @@ export const AssetsPane = ({ onClose, repository, onOpenExecutionCenter }: Assetsize="icon"variant="ghost"aria-label={t("assets.deleteAria", { filename: resource.filename || resource.id })}- className="absolute right-2 top-2 z-10 h-8 w-8 bg-card/90 text-slate-500 opacity-0 shadow-sm transition-opacity hover:bg-rose-50 hover:text-rose-600 focus:opacity-100 group-hover:opacity-100"+ className="edgeever-reveal-on-touch absolute right-2 top-2 z-10 h-8 w-8 bg-card/90 text-slate-500 opacity-0 shadow-sm transition-opacity hover:bg-rose-50 hover:text-rose-600 focus:opacity-100 group-hover:opacity-100 focus-within:opacity-100"onClick={() => requestResourceDelete(resource)}><Trash2 className="h-4 w-4" />@@ -474,7 +474,7 @@ export const AssetsPane = ({ onClose, repository, onOpenExecutionCenter }: Assetsize="icon"variant="ghost"aria-label={t("assets.deleteAria", { filename: resource.filename || resource.id })}- className="h-8 w-8 text-slate-350 opacity-0 transition-all duration-150 hover:bg-rose-50 hover:text-rose-600 focus:opacity-100 group-hover:opacity-100"+ className="edgeever-reveal-on-touch h-8 w-8 text-slate-350 opacity-0 transition-all duration-150 hover:bg-rose-50 hover:text-rose-600 focus:opacity-100 group-hover:opacity-100 focus-within:opacity-100"onClick={() => requestResourceDelete(resource)}><Trash2 className="h-4 w-4" />@@ -486,7 +486,7 @@ export const AssetsPane = ({ onClose, repository, onOpenExecutionCenter }: Assettarget="_blank"rel="noreferrer"aria-label={t("assets.openInNewWindow")}- className="flex h-8 w-8 items-center justify-center rounded-lg text-slate-350 hover:bg-slate-50 hover:text-emerald-600 opacity-0 group-hover:opacity-100 focus:opacity-100 transition-all duration-150"+ className="edgeever-reveal-on-touch flex h-8 w-8 items-center justify-center rounded-lg text-slate-350 hover:bg-slate-50 hover:text-emerald-600 opacity-0 group-hover:opacity-100 focus:opacity-100 focus-within:opacity-100 transition-all duration-150"><ExternalLink className="h-4 w-4" /></a>diff --git a/apps/web/src/components/NotebookPane.tsx b/apps/web/src/components/NotebookPane.tsxindex 1d006942..e40bbc46 100644--- a/apps/web/src/components/NotebookPane.tsx+++ b/apps/web/src/components/NotebookPane.tsx@@ -209,7 +209,7 @@ const SidebarTrashShortcut = ({<div className="group relative min-w-0"><SidebarShortcutButton active={active} icon={<Trash2 className="h-4 w-4" />} label={t("notebookPane.trash")} onClick={onOpenTrash} showTooltip={false} />{!active && (- <div className="pointer-events-none absolute right-0 top-full z-20 w-max pt-1 opacity-0 transition-opacity duration-150 group-hover:pointer-events-auto group-hover:opacity-100">+ <div className="pointer-events-none absolute right-0 top-full z-20 w-max pt-1 opacity-0 transition-opacity duration-150 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100"><buttonclassName="relative flex h-8 items-center gap-1.5 rounded-md border border-rose-200 bg-card px-2 text-xs font-medium text-rose-700 shadow-lg shadow-slate-900/10 transition-colors before:absolute before:-top-1 before:right-16 before:h-2 before:w-2 before:rotate-45 before:border-l before:border-t before:border-rose-200 before:bg-card hover:bg-rose-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-rose-400/70"type="button"diff --git a/apps/web/src/components/NotebookTreeItem.tsx b/apps/web/src/components/NotebookTreeItem.tsxindex 14b7b41c..84c95f59 100644--- a/apps/web/src/components/NotebookTreeItem.tsx+++ b/apps/web/src/components/NotebookTreeItem.tsx@@ -282,7 +282,7 @@ export const NotebookTreeItem = ({<div ref={actionsRef} className="relative shrink-0"><buttonclassName={cn(- "hidden h-6 w-6 items-center justify-center rounded-md group-focus-within:flex group-hover:flex transition-colors duration-150",+ "edgeever-reveal-on-touch hidden h-6 w-6 items-center justify-center rounded-md group-focus-within:flex group-hover:flex transition-colors duration-150",selected ? "hover:bg-slate-200" : "hover:bg-slate-100")}type="button"diff --git a/apps/web/src/lib/tailwind-theme.test.mjs b/apps/web/src/lib/tailwind-theme.test.mjsindex 174dc059..c476eda5 100644--- a/apps/web/src/lib/tailwind-theme.test.mjs+++ b/apps/web/src/lib/tailwind-theme.test.mjs@@ -14,6 +14,11 @@ describe("tailwind theme tokens", () => {expect(css).toContain("--color-emerald-500: rgb(var(--brand-green-500-rgb) / 1)");expect(css).toContain("--color-amber-50: rgb(var(--amber-50-rgb) / 1)");expect(css).toContain("--color-rose-50: rgb(var(--rose-50-rgb) / 1)");+ expect(css).toContain("--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05)");+ expect(css).toContain("--blur-sm: 4px");+ expect(css).toContain(".focus-visible\\:outline-none:focus-visible");+ expect(css).toContain(".edgeever-reveal-on-touch");+ expect(css).toContain(".divide-slate-200 > :not(:last-child)");});test("mobile CSS tokens match the shared layout metrics", () => {diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.cssindex 3a07437d..7b6d102d 100644--- a/apps/web/src/styles/globals.css+++ b/apps/web/src/styles/globals.css@@ -12,6 +12,9 @@--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Inter, ui-sans-serif, system-ui, sans-serif;--font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--shadow-panel: 0 1px 2px rgb(var(--slate-900-rgb) / 0.05), 0 16px 40px rgb(var(--slate-900-rgb) / 0.07);+ /* Tailwind 4 shifted shadow-sm and blur-sm up one step. Keep the weights this UI shipped with. */+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);+ --blur-sm: 4px;--radius-lg: var(--radius);--radius-md: calc(var(--radius) - 2px);--radius-sm: calc(var(--radius) - 4px);@@ -101,6 +104,26 @@}}+/* v4 outline-none removes the outline entirely, and a same-named @utility is+ * emitted before the built-in rule. This unlayered block wins and keeps the+ * previous transparent outline, including the focus variants used in the app. */+.outline-none,+.focus\:outline-none:focus,+.focus-visible\:outline-none:focus-visible {+ outline: 2px solid transparent;+ outline-offset: 2px;+}++/* v4 hover variants only apply on devices that can hover. These controls are+ * otherwise unreachable on touch. */+@media (hover: none) {+ .edgeever-reveal-on-touch {+ display: flex;+ opacity: 1;+ pointer-events: auto;+ }+}+.edgeever-infographic-selected-text {outline: 2px solid #3384f5;outline-offset: 2px;@@ -516,8 +539,8 @@ html[data-edgeever-extension-theme] .text-slate-600 {html[data-edgeever-extension-theme] .border-slate-100,html[data-edgeever-extension-theme] .border-slate-200,html[data-edgeever-extension-theme] .border-slate-300,-html[data-edgeever-extension-theme] .divide-slate-100 > :not([hidden]) ~ :not([hidden]),-html[data-edgeever-extension-theme] .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {+html[data-edgeever-extension-theme] .divide-slate-100 > :not(:last-child),+html[data-edgeever-extension-theme] .divide-slate-200 > :not(:last-child) {border-color: var(--edgeever-theme-border, #e2e8f0);}