agentgui 1.0.887 → 1.0.889

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.887",
3
+ "version": "1.0.889",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "electron/main.js",
@@ -132,7 +132,7 @@ async function main() {
132
132
 
133
133
  for (const s of shots) {
134
134
  const page = await browser.newPage();
135
- page.setDefaultNavigationTimeout(15000);
135
+ page.setDefaultNavigationTimeout(30000);
136
136
  await page.emulateMediaFeatures([{ name: 'prefers-reduced-motion', value: 'reduce' }]);
137
137
  await page.evaluateOnNewDocument((theme) => {
138
138
  try { localStorage.setItem('theme', theme); } catch {}
@@ -148,7 +148,7 @@ async function main() {
148
148
  }, s.theme);
149
149
 
150
150
  console.log(`[capture] -> ${s.name} (${s.theme})`);
151
- await page.goto(s.url, { waitUntil: 'networkidle2' });
151
+ await page.goto(s.url, { waitUntil: 'domcontentloaded' });
152
152
  // Determinism: wait until the sidebar has transitioned out of "Loading..."
153
153
  // and rendered at least one conversation row.
154
154
  await page.waitForFunction(() => {
package/static/app.js CHANGED
@@ -190,10 +190,21 @@ const BASE_URL = window.__BASE_URL || '';
190
190
  const btn = document.getElementById('sidebarOverflowBtn');
191
191
  const menu = document.getElementById('sidebarOverflowMenu');
192
192
  if (!btn || !menu) return;
193
- const close = () => menu.classList.remove('open');
193
+ const close = () => { menu.classList.remove('open'); menu.style.top = menu.style.bottom = ''; };
194
+ const open = () => {
195
+ menu.classList.add('open');
196
+ const rect = menu.getBoundingClientRect();
197
+ if (rect.bottom > window.innerHeight - 8) {
198
+ menu.style.top = 'auto';
199
+ menu.style.bottom = '100%';
200
+ } else {
201
+ menu.style.top = '';
202
+ menu.style.bottom = '';
203
+ }
204
+ };
194
205
  btn.addEventListener('click', (e) => {
195
206
  e.stopPropagation();
196
- menu.classList.toggle('open');
207
+ menu.classList.contains('open') ? close() : open();
197
208
  });
198
209
  document.addEventListener('click', (e) => {
199
210
  if (!menu.contains(e.target) && e.target !== btn) close();
@@ -447,4 +447,22 @@ code {
447
447
  :focus-visible {
448
448
  outline: 2px solid var(--panel-accent) !important;
449
449
  outline-offset: 2px;
450
+ }
451
+
452
+ /* Chip selects — use panel-3 so they contrast against the panel-1 card bg */
453
+ .input-chip-select {
454
+ background: var(--panel-3) !important;
455
+ border: 1px solid var(--color-border) !important;
456
+ color: var(--color-text-primary) !important;
457
+ border-radius: var(--r-pill) !important;
458
+ }
459
+ .input-chip-select:hover {
460
+ border-color: var(--panel-accent) !important;
461
+ background: var(--panel-select) !important;
462
+ }
463
+
464
+ /* Viewport-safe dropdown menu — max-height prevents off-screen overflow; JS flips top/bottom */
465
+ .sidebar-overflow-menu {
466
+ max-height: calc(100dvh - 80px);
467
+ overflow-y: auto;
450
468
  }