mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 20:45:33 -08:00
Fix the agent setup page's Back button, scrolling and Install page link, and release 3.0.4
AI Assisted
This commit is contained in:
1 parent
037fb0d864
commit
49619f88f0
14 files changed
+81
-22
No files matched your search
@@ -71,7 +71,7 @@ import { renderAgentsDoc, renderBriefButton, renderDoc, renderOverview } from ".
|
||||
import { board, renderGitBoard, resetBoard } from "./git-host.js";
|
||||
import { renderWorkspace, tellFolderIssues } from "./workspace.js";
|
||||
import { openHelpOn } from "./help-dialog.js";
|
||||
import { linkLeavesPage, onAppMessage, startNewSession, tellApp } from "../app-bridge.js";
|
||||
import { framed, linkLeavesPage, onAppMessage, startNewSession, tellApp } from "../app-bridge.js";
|
||||
import { continueButton } from "../continue-button.js";
|
||||
import { askOfflineFlipped, askState, declineOpen, renderAside, renderAsk, renderSubagents, renderSubagentsButton } from "./ask.js";
|
||||
import { renderHandoff, renderLoopEnd, renderHomeButton, renderStopButton, renderStopControls, renderStopping, stopInProgress, stopWarning } from "./ending.js";
|
||||
@@ -2251,11 +2251,13 @@ export function wireChrome() {
|
||||
|
||||
// Under the app, a link off the page goes to the default browser through
|
||||
// the console: the app's window opens no new ones, so the click alone would
|
||||
// do nothing. Capture phase, ahead of any handler on the link itself.
|
||||
// do nothing. Capture phase, ahead of any handler on the link itself. The
|
||||
// setup page runs in the app's frame without the in-app flag (the app starts
|
||||
// its console without it), so a framed page counts too.
|
||||
document.addEventListener(
|
||||
"click",
|
||||
(e) => {
|
||||
if (!page.inApp || e.defaultPrevented || !(e.target instanceof Element)) return;
|
||||
if (!(page.inApp || framed()) || e.defaultPrevented || !(e.target instanceof Element)) return;
|
||||
const a = e.target.closest("a[href]");
|
||||
if (!a || !linkLeavesPage(a.href, location.origin)) return;
|
||||
e.preventDefault();
|
||||
|
||||
@@ -282,6 +282,19 @@ h1 {
|
||||
padding-right: 32px;
|
||||
}
|
||||
|
||||
/* The agent setup page is the column's whole contents too, and its agent list
|
||||
runs past the fold, so it scrolls itself like the menu above. */
|
||||
.main > .setup-screen {
|
||||
flex: 0 1 auto;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
/* Its parts keep their height: the agent list clips its own overflow, so left
|
||||
to shrink it would be cut at the fold instead of scrolling. */
|
||||
.main > .setup-screen > * { flex-shrink: 0; }
|
||||
|
||||
/* The column itself never scrolls; the card does. The git board is the one
|
||||
exception, below: its card sits in the board's card slot, so the column
|
||||
takes the scroll there and card and board flow through it at natural height. */
|
||||
|
||||
Reference in new issue
Block a user