Skip to content

Commit

Permalink
Fix: Add vertical scrolling to file content viewer (#5872)
Browse files Browse the repository at this point in the history
Co-authored-by: openhands <openhands@all-hands.dev>
  • Loading branch information
mamoodi and openhands-agent authored Dec 27, 2024
1 parent 6a75800 commit cc928e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/routes/_oh.app._index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ function FileViewer() {
return (
<div className="flex h-full bg-neutral-900 relative">
<FileExplorer isOpen={fileExplorerIsOpen} onToggle={toggleFileExplorer} />
<div className="w-full">
<div className="w-full h-full flex flex-col">
{selectedPath && (
<div className="flex w-full items-center justify-between self-end p-2">
<span className="text-sm text-neutral-500">{selectedPath}</span>
</div>
)}
{selectedPath && files[selectedPath] && (
<div className="p-4">
<div className="p-4 flex-1 overflow-auto">
<SyntaxHighlighter
language={getLanguageFromPath(selectedPath)}
style={vscDarkPlus}
Expand Down

0 comments on commit cc928e6

Please sign in to comment.