diff --git a/backend/backend.go b/backend/backend.go index 1d0dd5a..12b5101 100644 --- a/backend/backend.go +++ b/backend/backend.go @@ -261,7 +261,6 @@ func LatexCompile() error { } LogLine("LaTeX execution started", 2) - execution.ExecutionState = "Started" var latexCommand *exec.Cmd switch config.LatexEngine { @@ -282,19 +281,17 @@ func LatexCompile() error { return errors.New("Unsupported LaTeX Engine") } - execution.ExecutionState = "Running" stdout, err := latexCommand.Output() - if err != nil { - execution.ExecutionState = "Failed" - return err - } - execution.Output = stdout - execution.ExecutionState = "Done" + if err == nil { + execution.ExecutionState = globals.LatexExecutionStateSuccess + } else { + execution.ExecutionState = globals.LatexExecutionStateFailure + } updateExecutionTimestamp(execution) LogLine("LaTeX execution finished", 2) - return nil + return err } // Checks whether the proxy is trusted. Returns trusted status and the proxy. diff --git a/frontend/jscss/custom-view.css b/frontend/jscss/custom-view.css index 45d2a7a..aced3d8 100644 --- a/frontend/jscss/custom-view.css +++ b/frontend/jscss/custom-view.css @@ -1,18 +1,20 @@ .output { - height: 80vh; + height: 75vh; } .left-sidebar { - padding: 15px; + padding: 10px; + width: 15vw; height: 100%; + resize: both; } .pdf-frame { - width: 100%; + width: 85vw; height: 100%; border: none; } .command-out { - height: 20vh; - padding: 20px; + height: 25vh; + padding: 5px; background-color: #eaeaea; overflow-y: auto; } diff --git a/frontend/templates/main.html b/frontend/templates/main.html index 86b0666..02cc14e 100644 --- a/frontend/templates/main.html +++ b/frontend/templates/main.html @@ -10,29 +10,30 @@ -