From 4571bebf8ea052f164978db8e2c2c7c05bd3f464 Mon Sep 17 00:00:00 2001 From: Fusion Date: Sun, 24 May 2026 13:10:07 +0200 Subject: [PATCH] feat: add font size controls to mobile terminal header and fix auto-hide space reclamation - TerminalComponent: expose changeFontSize via onTerminalReady callback - MobileTerminalWrapper: pass changeFontSize to header - MobileTerminalHeader: add A- and A+ font size buttons - CSS: collapse header height/padding/margin/border when hidden to reclaim space --- .../src/components/mobile-terminal-header.tsx | 22 +++++++++++++++++++ .../components/mobile-terminal-wrapper.tsx | 6 +++-- apps/web/src/components/terminal.tsx | 13 ++++++++--- apps/web/src/styles.css | 11 +++++++++- 4 files changed, 46 insertions(+), 6 deletions(-) diff --git a/apps/web/src/components/mobile-terminal-header.tsx b/apps/web/src/components/mobile-terminal-header.tsx index fd71ef4..920de97 100644 --- a/apps/web/src/components/mobile-terminal-header.tsx +++ b/apps/web/src/components/mobile-terminal-header.tsx @@ -6,6 +6,7 @@ interface MobileTerminalHeaderProps { onBack?: () => void; onMenuToggle?: () => void; onClose?: () => void; + onFontSizeChange?: (delta: number) => void; isVisible: boolean; connectionStatus?: "connecting" | "connected" | "disconnected" | "error"; } @@ -15,6 +16,7 @@ export const MobileTerminalHeader: React.FC = ({ onBack, onMenuToggle, onClose, + onFontSizeChange, isVisible, connectionStatus = "connecting", }) => { @@ -56,6 +58,26 @@ export const MobileTerminalHeader: React.FC = ({
+ {onFontSizeChange && ( + <> + + + + )} {onClose && (