fix: Corregir scroll del emulador y serializacion circular de FindCursor en mongosh
This commit is contained in:
@@ -169,7 +169,7 @@ export function SeccionSistema() {
|
||||
<CardContent>
|
||||
<div
|
||||
className="bg-gray-900 text-green-400 font-mono text-sm p-4 rounded-md h-[400px] overflow-y-auto flex flex-col gap-1 relative cursor-text group"
|
||||
onClick={() => inputRef.current?.focus()}
|
||||
onClick={() => inputRef.current?.focus({ preventScroll: true })}
|
||||
>
|
||||
{consoleHistory.length === 0 && (
|
||||
<div className="text-gray-500 italic mb-2">Conectado. Esperando comandos... Ej: db.pacientes.find()</div>
|
||||
@@ -194,7 +194,7 @@ export function SeccionSistema() {
|
||||
<input
|
||||
ref={inputRef}
|
||||
type="text"
|
||||
className="opacity-0 absolute inset-0 w-full h-full pointer-events-none"
|
||||
className="opacity-0 w-[1px] h-[1px] absolute overflow-hidden p-0 m-0 border-0 pointer-events-none"
|
||||
value={mongoshCommand}
|
||||
onChange={(e) => setMongoshCommand(e.target.value)}
|
||||
onKeyDown={handleKeyDown}
|
||||
|
||||
Reference in New Issue
Block a user