mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
fix: use user's terminal font settings for dev server logs
XtermLogViewer was passing DEFAULT_TERMINAL_FONT directly to xterm.js, but this value is 'default' - a sentinel string for the dropdown selector, not a valid CSS font family. Also the font size was hardcoded to 13px. Now reads the user's font preference from terminalState: - fontFamily: Uses getTerminalFontFamily() to convert to CSS font stack - defaultFontSize: Uses store value when fontSize prop not provided Also adds useEffects to update font settings dynamically when they change. This ensures dev server logs respect Settings > Terminal settings.
This commit is contained in:
@@ -256,7 +256,6 @@ export function DevServerLogsPanel({
|
||||
ref={xtermRef}
|
||||
className="h-full"
|
||||
minHeight={280}
|
||||
fontSize={13}
|
||||
autoScroll={autoScrollEnabled}
|
||||
onScrollAwayFromBottom={() => setAutoScrollEnabled(false)}
|
||||
onScrollToBottom={() => setAutoScrollEnabled(true)}
|
||||
|
||||
Reference in New Issue
Block a user