Skip to content

Commit 2849974

Browse files
[WIP] better code display (#7453)
Co-authored-by: openhands <[email protected]>
1 parent daa4af1 commit 2849974

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

frontend/src/routes/_oh.app._index/route.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,18 @@ function FileViewer() {
7878
<div className="flex h-full bg-base-secondary relative">
7979
<FileExplorer isOpen={fileExplorerIsOpen} onToggle={toggleFileExplorer} />
8080
<div className="w-full h-full flex flex-col">
81-
{selectedPath && (
82-
<div className="flex w-full items-center justify-between self-end p-2">
83-
<span className="text-sm text-neutral-500">{selectedPath}</span>
84-
</div>
85-
)}
8681
{selectedPath && files[selectedPath] && (
87-
<div className="p-4 flex-1 overflow-auto">
82+
<div className="h-full w-full overflow-auto">
8883
<SyntaxHighlighter
8984
language={getLanguageFromPath(selectedPath)}
9085
style={vscDarkPlus}
9186
customStyle={{
9287
margin: 0,
88+
padding: "10px",
89+
height: "100%",
9390
background: "#171717",
9491
fontSize: "0.875rem",
92+
borderRadius: 0,
9593
}}
9694
>
9795
{files[selectedPath]}

0 commit comments

Comments
 (0)