@setoelkahfi / svara / commits / 72af72f

chore: attempt terminal resize on window resize

Signed-off-by: mellobacon <mellodev@outlook.com>

mellobacon committed Feb 1, 2024 at 11:55 UTC 72af72f0c0ad0d8d70cedcb3c3d0ff19168303bf
1 file changed +2
src/config/commands.ts
+2
@@ -4,6 +4,7 @@ import { addEditorTab, closeAllTabs } from "../lib/EditorTabList.svelte";
4 import { saveFile, openFile, openFolder, openInExplorer, renameFile, createFolder, createFile } from "../lib/File";
5 import { appWindow } from "@tauri-apps/api/window";
6 import { info, warn } from "tauri-plugin-log-api";
7 +import { fitTerminal } from "../lib/Terminal.svelte";
8
9 export const commands = {
10 "addEditorTab": {
@@ -168,6 +169,7 @@ export const commands = {
169 else {
170 appWindow.maximize()
171 }
172 + fitTerminal();
173 }
174 },
175 "closeWindow": {