Skip to content

Commit

Permalink
fix(Source): Use dynamic height instead of fixed height in pixels
Browse files Browse the repository at this point in the history
(cherry picked from commit f6a72f1)
  • Loading branch information
mmelko authored and phantomjinx committed May 9, 2024
1 parent 5fa875f commit 5d68ad2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/hawtio/src/plugins/camel/routes/Source.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ export const Source: React.FunctionComponent = () => {
}
}, [selectedNode])

return <CodeEditor isReadOnly code={xmlSource} language={Language.xml} height='500px' />
return (
<div style={{ height: '100%' }}>
<CodeEditor isReadOnly code={xmlSource} language={Language.xml} height={'75vh'} />
</div>
)
}

0 comments on commit 5d68ad2

Please sign in to comment.