move circular loading

This commit is contained in:
joneugster
2023-10-21 02:13:44 +02:00
parent b5927a1024
commit ceee1b38e1
2 changed files with 9 additions and 5 deletions
@@ -87,6 +87,13 @@
flex-direction: column;
}
.typewriter-interface .proof .MuiCircularProgress-root {
left: 50%;
position: relative;
margin-left: -20px;
margin-bottom: 0.6em;
}
.typewriter .typewriter-input {
flex: 1;
}
+2 -5
View File
@@ -458,9 +458,6 @@ export function TypewriterInterface(props: { world: string, level: number, data:
<RpcContext.Provider value={rpcSess}>
<div className="content">
<div className="tmp-pusher">
{!proof.length &&
<CircularProgress />
}
</div>
<div className='proof' ref={proofPanelRef}>
<ExerciseStatement data={props.data} />
@@ -523,11 +520,11 @@ export function TypewriterInterface(props: { world: string, level: number, data:
}
</div>
}
</> : <></>
</> : <CircularProgress />
}
</div>
</div>
<Typewriter hidden={!withErr && proof[proof.length - 1]?.goals.length == 0} disabled={disableInput}/>
<Typewriter hidden={!withErr && proof[proof.length - 1]?.goals.length == 0} disabled={disableInput || !proof.length}/>
</RpcContext.Provider>
</div>
}