mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Bug Fix: UI layout changes as you switch between tabs (#58)
* Fix UI layout change bug * Reword comment
This commit is contained in:
parent
34c76a52c8
commit
b6699fa047
@ -9,6 +9,12 @@ function Terminal(): JSX.Element {
|
||||
const WS_URL = import.meta.env.VITE_TERMINAL_WS_URL;
|
||||
useEffect(() => {
|
||||
const terminal = new XtermTerminal({
|
||||
// This value is set to the appropriate value by the
|
||||
// `fitAddon.fit()` call below.
|
||||
// If not set here, the terminal does not respect the width
|
||||
// of its parent element. This causes a bug where the terminal
|
||||
// is too large and switching tabs causes a layout shift.
|
||||
cols: 0,
|
||||
fontFamily: "Menlo, Monaco, 'Courier New', monospace",
|
||||
fontSize: 14,
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user