Fixed small bug in terminal resizing. Updated readme with discord.

This commit is contained in:
Karmaa
2025-03-06 19:45:17 -06:00
parent 9ff199ea96
commit 0b00c26f8a
4 changed files with 4 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ function App() {
const getLayoutStyle = () => {
if (splitTabIds.length === 1) {
return "flex flex-row h-full gap-4";
return "grid grid-cols-2 h-full gap-4";
} else if (splitTabIds.length > 1) {
return "grid grid-cols-2 grid-rows-2 gap-4 h-full overflow-hidden";
}

View File

@@ -21,7 +21,7 @@ export const NewTerminal = forwardRef(({ hostConfig, isVisible }, ref) => {
void parentContainer.offsetHeight;
const parentWidth = parentContainer.clientWidth;
const parentHeight = parentContainer.clientHeight - 16;
const parentHeight = parentContainer.clientHeight;
terminalContainer.style.width = `${parentWidth}px`;
terminalContainer.style.height = `${parentHeight}px`;

View File

@@ -14,6 +14,5 @@
}
.terminal-container > div {
flex: 1;
min-height: 0;
}