MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / toolbarRows

Function toolbarRows

graph-ui/tools/call-feedback-acceptance.mjs:261–272  ·  view source on GitHub ↗
(chat)

Source from the content-addressed store, hash-verified

259
260 // G7: die Werkzeugleiste bleibt eine Zeile, bei geschlossenem und (Handtest K3) bei offenem Chat.
261 const toolbarRows = async (chat) => {
262 const measured = await page.evaluate(() => {
263 const bar = document.querySelector('.atlas-graph-exploration');
264 if (!bar) return null;
265 // Eine Zeile je Mitte der Kinder der Leiste; die Kinder ihrer Kinder (Text in Knoepfen) zaehlen nicht extra.
266 const items = [...bar.children].filter((el) => el.getBoundingClientRect().height > 0);
267 const centres = items.map((el) => { const r = el.getBoundingClientRect(); return Math.round((r.top + r.bottom) / 2 / 16); });
268 const box = bar.getBoundingClientRect();
269 return { rows: [...new Set(centres)].length, width: Math.round(box.width), height: Math.round(box.height), overflow: bar.scrollWidth > bar.clientWidth + 1, fit: bar.dataset.fit ?? null };
270 });
271 return { chat, ...measured };
272 };
273 const toolbar = [await toolbarRows('closed')];
274 const g7Images = [await shot(page, 'g7-chat-zu')];
275 await page.getByRole('button', { name: 'Open chat' }).first().click().catch(() => {});

Callers 1

galaxyChecksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected