fix(webui): add a close control to the expanded context panel (#6629)
This commit is contained in:
1 parent
27f1a836b5
commit
e3a1af2ed3
5 files changed
+32
-9
No files matched your search
@@ -176,7 +176,7 @@ export function ComposerUsagePopover({
|
||||
};
|
||||
|
||||
const inspector = <ContextInspector key={sessionKey} sidebar expandable={!narrow} context={context} rounds={rounds} snapshots={snapshots}
|
||||
onOpenFile={onOpenFile ? (path) => { setOpen(false); onOpenFile(path); } : undefined} />;
|
||||
onClose={narrow ? undefined : close} onOpenFile={onOpenFile ? (path) => { setOpen(false); onOpenFile(path); } : undefined} />;
|
||||
const onPanelKeyDown = (event: KeyboardEvent<HTMLElement>) => {
|
||||
if (event.key === "Escape" && !event.defaultPrevented) { event.preventDefault(); close(); }
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user