From edc96da4ed86151b867a38c90f4a5d7b91c2a8c1 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Sat, 14 Feb 2026 03:57:30 -0600 Subject: [PATCH] fix: TypeScript error in terminalStyle computed --- frontend/src/components/FloatingTerminal.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/FloatingTerminal.vue b/frontend/src/components/FloatingTerminal.vue index 878fe61..cde3db8 100644 --- a/frontend/src/components/FloatingTerminal.vue +++ b/frontend/src/components/FloatingTerminal.vue @@ -283,7 +283,7 @@ function stopResize() { nextTick(() => fitAddon?.fit()) } -const terminalStyle = computed(() => { +const terminalStyle = computed((): Record => { // Mobile: bottom sheet with dynamic height if (isMobile.value) { // When keyboard is open, position above it @@ -304,15 +304,17 @@ const terminalStyle = computed(() => { } // Desktop: floating window - const base = { - width: `${size.value.w}px`, - height: `${size.value.h}px` - } if (!hasCustomPosition.value) { - return { ...base, bottom: '16px', right: '16px' } + return { + width: `${size.value.w}px`, + height: `${size.value.h}px`, + bottom: '16px', + right: '16px' + } } return { - ...base, + width: `${size.value.w}px`, + height: `${size.value.h}px`, top: `${position.value.y}px`, left: `${position.value.x}px`, bottom: 'auto',