Skip to content

Commit 43c48e0

Browse files
author
IM.codes
committed
Raise quick input panel above mobile overlays
1 parent c5c85fe commit 43c48e0

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

web/src/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ body {
520520
.qp-trigger { padding: 6px 9px; background: #0f172a; border: 1px solid #334155; border-radius: 4px; color: #fbbf24; font-size: 14px; cursor: pointer; line-height: 1; transition: all 0.1s; flex-shrink: 0; }
521521
.qp-trigger:hover { background: #1e3a5f; border-color: #fbbf24; }
522522
.qp-backdrop { display: none; }
523-
.qp { position: absolute; bottom: calc(100% + 6px); left: 0; width: min(75vw, 1050px); max-height: 65vh; background: #1e293b; border: 1px solid #334155; border-radius: 8px; box-shadow: 0 8px 24px #00000070; z-index: 45; display: flex; flex-direction: column; overflow: hidden; }
523+
.qp { position: absolute; bottom: calc(100% + 6px); left: 0; width: min(75vw, 1050px); max-height: 65vh; background: #1e293b; border: 1px solid #334155; border-radius: 8px; box-shadow: 0 8px 24px #00000070; z-index: 10002; display: flex; flex-direction: column; overflow: hidden; }
524524
.qp-toolbar { display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #334155; flex-shrink: 0; }
525525
.qp-toolbar-btn { padding: 4px 10px; background: #0f172a; border: 1px solid #334155; border-radius: 4px; color: #94a3b8; font-size: 11px; font-family: inherit; cursor: pointer; transition: all 0.1s; }
526526
.qp-toolbar-btn:hover { background: #1e3a5f; border-color: #3b82f6; color: #93c5fd; }
@@ -573,7 +573,7 @@ body {
573573

574574
/* Mobile responsive */
575575
@media (max-width: 640px) {
576-
.qp-backdrop { display: block; position: fixed; inset: 0; background: #00000070; z-index: 44; }
576+
.qp-backdrop { display: block; position: fixed; inset: 0; background: #00000070; z-index: 10001; }
577577
.qp { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; max-height: 60vh; border-radius: 12px 12px 0 0; border-bottom: none; }
578578
}
579579

web/test/components/SessionControls.test.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,6 +2289,20 @@ afterEach(() => {
22892289
expect(screen.getByRole('button', { name: /^default$/i })).toBeDefined();
22902290
});
22912291

2292+
it('opens the quick input panel when the quick trigger is clicked', () => {
2293+
render(
2294+
<SessionControls
2295+
ws={makeWs() as any}
2296+
activeSession={makeSession({ name: 'my-session' })}
2297+
quickData={makeQuickData() as any}
2298+
/>,
2299+
);
2300+
2301+
expect(screen.queryByText('quick-panel-send')).toBeNull();
2302+
fireEvent.click(screen.getByTitle('title'));
2303+
expect(screen.getByText('quick-panel-send')).toBeDefined();
2304+
});
2305+
22922306
it('shows thinking control for codex-sdk and sends /thinking command', () => {
22932307
const ws = makeWs();
22942308
render(

0 commit comments

Comments
 (0)