File tree Expand file tree Collapse file tree 2 files changed +37
-3
lines changed
Expand file tree Collapse file tree 2 files changed +37
-3
lines changed Original file line number Diff line number Diff line change @@ -2408,9 +2408,30 @@ function App() {
24082408 const displaySimulationTitle = activeSimulationEntry ?. title || '' ;
24092409 const displaySimulationStatus = activeSimulationEntry ?. status || simulationStatus ;
24102410 const displaySimulationProgress = activeSimulationEntry ?. progress || simulationProgress ;
2411- const displaySimulationElapsed = (
2412- activeSimulationEntry ?. elapsedSeconds ?? simulationElapsed
2413- ) ;
2411+ const displaySimulationElapsed = ( ( ) => {
2412+ const entryElapsed = Number . isFinite ( activeSimulationEntry ?. elapsedSeconds )
2413+ ? activeSimulationEntry . elapsedSeconds
2414+ : null ;
2415+ const isActiveJob = activeSimulationEntry ?. id
2416+ && simulationJobId
2417+ && activeSimulationEntry . id === simulationJobId ;
2418+ if ( isActiveJob ) {
2419+ if ( entryElapsed !== null && entryElapsed > 0 ) {
2420+ return entryElapsed ;
2421+ }
2422+ return simulationElapsed ;
2423+ }
2424+ if ( activeSimulationEntry ) {
2425+ if ( entryElapsed !== null && entryElapsed > 0 ) {
2426+ return entryElapsed ;
2427+ }
2428+ if ( activeSimulationEntry . status === 'complete' && simulationElapsed > 0 ) {
2429+ return simulationElapsed ;
2430+ }
2431+ return entryElapsed ?? simulationElapsed ;
2432+ }
2433+ return simulationElapsed ;
2434+ } ) ( ) ;
24142435
24152436 useEffect ( ( ) => {
24162437 let ignore = false ;
Original file line number Diff line number Diff line change @@ -3890,6 +3890,19 @@ main.container {
38903890 .debug-grid--bottom {
38913891 grid-template-columns : repeat (1 , minmax (0 , 1fr ));
38923892 }
3893+
3894+ .transcript-entry {
3895+ margin-bottom : 0.45rem ;
3896+ }
3897+
3898+ .transcript-entry__speaker {
3899+ margin-bottom : 0.2rem ;
3900+ font-size : 0.88rem ;
3901+ }
3902+
3903+ .transcript-entry__bubble {
3904+ padding : 0.65rem 0.8rem ;
3905+ }
38933906}
38943907
38953908.debug-table {
You can’t perform that action at this time.
0 commit comments