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
8 changes: 7 additions & 1 deletion .agents/skills/ui-screenshot/scripts/capture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ async function main() {
const [vw, vh] = (viewport as string).split(',').map(Number);
const waitMs = Number(wait);
const useMock = mock !== 'false';
const captureTheme = theme === 'light' ? 'light' : 'dark';

const timestamp = new Date().toISOString().replace(/[:T]/g, '-').slice(0, 19);
const outputPath = resolve(out ?? `screenshots/capture-${timestamp}.png`);
Expand All @@ -78,12 +79,17 @@ async function main() {

const context = await browser.newContext({
viewport: { width: vw, height: vh },
colorScheme: theme as 'dark' | 'light',
colorScheme: captureTheme,
deviceScaleFactor: 1,
});

const page = await context.newPage();

await page.addInitScript((selectedTheme) => {
window.localStorage.setItem('agenthub-theme', selectedTheme);
document.documentElement.setAttribute('data-theme', selectedTheme);
}, captureTheme);

// Inject mock data before navigation
if (useMock) {
await page.addInitScript((payload) => {
Expand Down
88 changes: 79 additions & 9 deletions app/desktop/src/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
gap: 4px;
padding: 8px 5px;
border: 1px solid var(--glass-border-subtle);
border-radius: 14px;
Expand All @@ -283,8 +283,9 @@
-webkit-backdrop-filter: blur(16px);
}

.rightRail {
justify-content: flex-start;
.railSpacer {
flex: 1;
min-height: 8px;
}

.railStatusDot {
Expand Down Expand Up @@ -712,6 +713,56 @@
flex-shrink: 0;
}

/* ── Workspace content: transcript + inspector ─ */
.workspaceContent {
flex: 1;
display: flex;
min-height: 0;
}

.transcriptArea {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
min-width: 0;
}

/* ── Inline Inspector Panel ──────────────── */
.inspectorPanel {
width: var(--right-panel-width, 320px);
flex-shrink: 0;
display: flex;
flex-direction: column;
border-left: 1px solid var(--glass-border-subtle);
background: var(--sidebar-bg);
overflow: hidden;
transition: opacity 0.18s ease;
}

[data-theme='dark'] .inspectorPanel {
background: var(--glass-panel);
border-left-color: var(--glass-border);
}

.inspectorPanelBody {
flex: 1;
overflow-y: auto;
padding: var(--space-sm);
font-size: var(--font-size-xs);
color: var(--foreground);
}

.inspectorPanelOpen {
opacity: 1;
pointer-events: auto;
}

.inspectorPanelClosing {
opacity: 0;
pointer-events: none;
}

/* ═══════════════════════════════════════════════
Right panel — slim, refined
═══════════════════════════════════════════════ */
Expand Down Expand Up @@ -1289,20 +1340,39 @@
Responsive
═══════════════════════════════════════════════ */

@media (max-width: 1279px) {
.sidebar { width: min(var(--left-sidebar-width, 320px), 28vw); }
.inspectorPanel { width: min(var(--right-panel-width, 320px), 35vw); }
}

@media (max-width: 1023px) {
.sidebar { width: min(var(--left-sidebar-width, 320px), 34vw); }
.rightPanel {
right: 12px;
width: min(var(--right-panel-width, 320px), 40vw);
max-height: calc(100% - 60px);
}
.inspectorPanel { width: min(var(--right-panel-width, 280px), 40vw); }
}

@media (max-width: 767px) {
.topBar {
height: 28px;
justify-content: flex-end;
padding-inline: 8px;
}

.topBarLeft {
flex: 1 1 auto;
min-width: 0;
}

.topBarNavCluster,
.appMenu,
.statusBadge,
.topBarDim {
display: none;
}

.body { flex-direction: column; padding: 0; gap: 0; }
.sidebar { display: none; }
.leftRail, .rightRail, .resizeHandle { display: none; }
.rightPanel { display: none; }
.inspectorPanel { display: none; }
.workspace { border-radius: 0; }
.nav { display: flex; }
.mobileToolbar { display: flex; }
Expand Down
Loading
Loading