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
  • Loading branch information
mmelko authored and tadayosi committed May 7, 2024
1 parent fd7a488 commit f6a72f1
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 f6a72f1

Please sign in to comment.