Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix: make workspace responsive on scaled displays

tianma-if1d88ca49b941
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsx
index 9c36b526..06df6b49 100644
--- a/apps/web/src/components/EditorPane.tsx
+++ b/apps/web/src/components/EditorPane.tsx
@@ -2645,7 +2645,7 @@ const RichEditorPane = ({
<TooltipTrigger asChild>
<Button
className={cn(
- "hidden h-8 w-8 text-slate-500 transition-all hover:bg-slate-100 hover:text-slate-950 focus-visible:ring-2 focus-visible:ring-slate-300 sm:inline-flex",
+ "hidden h-8 w-8 text-slate-500 transition-all hover:bg-slate-100 hover:text-slate-950 focus-visible:ring-2 focus-visible:ring-slate-300 min-[1600px]:inline-flex",
wechatCopyState === "copying" && "bg-slate-100 text-slate-700",
wechatCopyState === "copied" && "bg-emerald-100 text-emerald-700 ring-1 ring-emerald-200 hover:bg-emerald-100",
wechatCopyState === "error" && "bg-rose-100 text-rose-700 ring-1 ring-rose-200 hover:bg-rose-100"
@@ -2673,13 +2673,13 @@ const RichEditorPane = ({
</Tooltip>
</TooltipProvider>
<IconTooltip label={t("editor.versionHistory")}>
- <Button className="hidden h-8 w-8 text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-950 focus-visible:ring-2 focus-visible:ring-slate-300 sm:inline-flex" size="icon" variant="ghost" aria-label={t("editor.versionHistory")} onClick={() => setHistoryOpen(true)}>
+ <Button className="hidden h-8 w-8 text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-950 focus-visible:ring-2 focus-visible:ring-slate-300 min-[1600px]:inline-flex" size="icon" variant="ghost" aria-label={t("editor.versionHistory")} onClick={() => setHistoryOpen(true)}>
<History className="h-5 w-5" strokeWidth={2.25} />
</Button>
</IconTooltip>
- <GitHubRepositoryLink className="hidden h-8 w-8 justify-center rounded-md text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 lg:inline-flex" iconClassName="h-5 w-5" />
+ <GitHubRepositoryLink className="hidden h-8 w-8 justify-center rounded-md text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 min-[1600px]:inline-flex" iconClassName="h-5 w-5" />
<IconTooltip label={t("systemInfo.title")}>
- <Button className="relative hidden h-8 w-8 text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-950 focus-visible:ring-2 focus-visible:ring-emerald-500/70 sm:inline-flex" size="icon" variant="ghost" aria-label={t("systemInfo.title")} onClick={() => setSystemInfoOpen(true)}>
+ <Button className="relative hidden h-8 w-8 text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-950 focus-visible:ring-2 focus-visible:ring-emerald-500/70 min-[1600px]:inline-flex" size="icon" variant="ghost" aria-label={t("systemInfo.title")} onClick={() => setSystemInfoOpen(true)}>
<Info className="h-5 w-5" strokeWidth={2.25} />
{updateAvailable ? <span className="absolute right-1 top-1 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-2 ring-white" /> : null}
</Button>
diff --git a/apps/web/src/components/WorkspaceApp.tsx b/apps/web/src/components/WorkspaceApp.tsx
index bec8dd7d..652d0bd5 100644
--- a/apps/web/src/components/WorkspaceApp.tsx
+++ b/apps/web/src/components/WorkspaceApp.tsx
@@ -2499,12 +2499,12 @@ export const WorkspaceApp = ({
<div className="min-w-0 flex-1">
<main
className={cn(
- "grid h-[100dvh] min-h-0 grid-cols-[minmax(0,1fr)]",
+ "edgeever-workspace-grid grid h-[100dvh] min-h-0 grid-cols-[minmax(0,1fr)]",
desktopFocusModeActive
- ? "lg:grid-cols-[minmax(0,1fr)]"
+ ? "edgeever-workspace-grid--focus"
: rightView === "editor"
- ? "lg:grid-cols-[260px_var(--memo-list-width)_minmax(0,1fr)]"
- : "lg:grid-cols-[260px_1fr]"
+ ? "edgeever-workspace-grid--editor"
+ : "edgeever-workspace-grid--single-right"
)}
style={{ "--memo-list-width": `${memoListWidth}px` } as CSSProperties}
>
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index f032a29d..fefd3299 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -159,6 +159,27 @@ body {
overscroll-behavior-y: auto;
}
+/* Keep the three-pane desktop workspace usable on compact laptop screens.
+ * The notebook and memo columns may shrink, while the editor always keeps
+ * the remaining width instead of being clipped by fixed tracks.
+ */
+.edgeever-workspace-grid--focus {
+ grid-template-columns: minmax(0, 1fr);
+}
+
+@media (min-width: 1024px) {
+ .edgeever-workspace-grid--editor {
+ grid-template-columns:
+ clamp(180px, 17vw, 260px)
+ clamp(240px, 23vw, var(--memo-list-width))
+ minmax(0, 1fr);
+ }
+
+ .edgeever-workspace-grid--single-right {
+ grid-template-columns: clamp(180px, 17vw, 260px) minmax(0, 1fr);
+ }
+}
+
:root.dark body {
background: #0f172a;
color: #f8fafc;
diff --git a/package.json b/package.json
index e4fa3cb0..ca6ce30e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "edgeever",
- "version": "1.6.7",
+ "version": "1.6.8",
"private": true,
"type": "module",
"workspaces": [