Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions client/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ function remember(key, value) {

/** The App pane: the task's web app beside the agent, resizable, opened from the header. */
function setupAppPane(app) {
const button = document.getElementById('btn-app');
const button = document.createElement('button');
button.className = 'button button-text';
button.setAttribute('aria-controls', 'app-pane');
document.getElementById('btn-help').before(button);
const pane = document.getElementById('app-pane');
const divider = document.getElementById('app-divider');
const frame = document.getElementById('app-frame');
Expand Down Expand Up @@ -150,7 +153,6 @@ function setupAppPane(app) {
if (open && !frame.getAttribute('src')) frame.src = app.path;
remember('cosmo.app.open', open ? '1' : '0');
};
button.hidden = false;
button.addEventListener('click', () => setOpen(pane.hidden));
setOpen(remember('cosmo.app.open') === '1');

Expand Down
1 change: 0 additions & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ <h1 class="heading-small">Cosmo Agents</h1>
<div id="agent-switcher" class="agent-switcher" aria-label="Coding agent"></div>
<div id="agent-status" class="agent-status" aria-live="polite"></div>
<div class="spacer"></div>
<button id="btn-app" class="button button-text" aria-pressed="false" aria-controls="app-pane" hidden>Show app</button>
<button id="btn-help" class="button button-text">Help</button>
</header>

Expand Down
Loading