Skip to content

armgit / cogit

Public Imported from GitHub
0

Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.

fix(map): let the row edge take the pointer inside the map node

Eren0aecee609490
diff --git a/packages/template/src/styles.css b/packages/template/src/styles.css
index cef02bf..4b8ac44 100644
--- a/packages/template/src/styles.css
+++ b/packages/template/src/styles.css
@@ -2392,6 +2392,7 @@ time {
*/
.map-node button,
.map-node .git-row,
+.row-edge,
.session-dot,
.git-dot-hit {
pointer-events: all;
diff --git a/packages/template/test/rowEdge.test.ts b/packages/template/test/rowEdge.test.ts
index 0b328a5..4e10e9f 100644
--- a/packages/template/test/rowEdge.test.ts
+++ b/packages/template/test/rowEdge.test.ts
@@ -1,3 +1,4 @@
+import { readFileSync } from "node:fs";
import { ReactFlowProvider } from "@xyflow/react";
import { createElement } from "react";
import { renderToStaticMarkup } from "react-dom/server";
@@ -38,6 +39,11 @@ describe("dragging the message rows wider", () => {
expect(html).toContain(`height:${git.height}px`);
});
+ it("takes the pointer although React Flow turns it off inside map nodes", () => {
+ const css = readFileSync(new URL("../src/styles.css", import.meta.url), "utf8");
+ expect(css).toMatch(/\.row-edge,[^{]*\{\s*pointer-events:\s*all/);
+ });
+
it("remembers the width, and reads a blocked or empty storage as the default", () => {
const store = new Map<string, string>();
vi.stubGlobal("window", {