Skip to content

Commit

Permalink
fix: scrollbars
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Jul 25, 2024
1 parent b4dce74 commit 2314005
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
26 changes: 14 additions & 12 deletions components/workspace/cli.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,19 @@ export default function Cli() {
const { theme, systemTheme } = useTheme();

return (
<ReactTerminal
commands={commands}
prompt="#"
theme={theme !== "system" ? theme : systemTheme}
showControlBar={false}
welcomeMessage={
<div>
<p>Welcome to AElf Playground.</p>
<p>Type help to see all commands.</p>
</div>
}
/>
<div className="h-full pb-8">
<ReactTerminal
commands={commands}
prompt="#"
theme={theme !== "system" ? theme : systemTheme}
showControlBar={false}
welcomeMessage={
<div>
<p>Welcome to AElf Playground.</p>
<p>Type help to see all commands.</p>
</div>
}
/>
</div>
);
}
15 changes: 8 additions & 7 deletions components/workspace/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ export default function Editor({ defaultValue }: { defaultValue?: string }) {
}, [debouncedValue, pathname]);

return (
<CodeMirror
value={value}
height="1000px"
theme={editorTheme}
extensions={extensions}
onChange={onChange}
/>
<div className="h-full overflow-auto">
<CodeMirror
value={value}
theme={editorTheme}
extensions={extensions}
onChange={onChange}
/>
</div>
);
}

0 comments on commit 2314005

Please sign in to comment.