Skip to content

Commit

Permalink
small ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Krebs committed Oct 17, 2023
1 parent b41514a commit 552d3ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hugo/assets/scripts/arithmetics/arithmetics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class App extends React.Component<{}, AppState> {
<div className="border-solid border border-emeraldLangium bg-emeraldLangiumDarker flex items-center p-3 text-white font-mono ">
Preview
</div>
<div className="border border-emeraldLangium h-full w-full">
<div className="border border-emeraldLangium h-full w-full overflow-hidden overflow-y-scroll">
<Preview ref={this.preview} focusLine={(line: number) => {
this.monacoEditor.current?.getEditorWrapper()?.getEditor()?.revealLineInCenter(line);
this.monacoEditor.current?.getEditorWrapper()?.getEditor()?.setPosition({ lineNumber: line, column: 1 });
Expand Down
2 changes: 1 addition & 1 deletion hugo/assets/scripts/statemachine/statemachine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class StateMachineComponent extends React.Component<{
<div className="border-solid border border-emeraldLangium bg-emeraldLangiumDarker flex items-center p-3 text-white font-mono ">
Preview
</div>
<div className="border border-emeraldLangium h-full w-full">
<div className="border border-emeraldLangium h-full w-full overflow-hidden overflow-y-scroll">
<Preview ref={this.preview} />
</div>
</div>
Expand Down

0 comments on commit 552d3ff

Please sign in to comment.