drexler 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/ui/App.tsx +2 -9
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/ui/App.tsx
CHANGED
|
@@ -41,7 +41,6 @@ import { ThemeProvider } from "./ThemeContext.tsx";
|
|
|
41
41
|
import { TranscriptViewport } from "./TranscriptViewport.tsx";
|
|
42
42
|
import { getActiveTheme, THEMES } from "./themes.ts";
|
|
43
43
|
|
|
44
|
-
const MAX_INPUT_WIDTH = 80;
|
|
45
44
|
const TRANSCRIPT_CHROME_ROWS = 12;
|
|
46
45
|
|
|
47
46
|
export function transcriptRowsForTerminalRows(rows: number): number {
|
|
@@ -111,14 +110,8 @@ export function App({ conversation, config, mood = "neutral", fetchFn }: AppProp
|
|
|
111
110
|
};
|
|
112
111
|
}, [stdout]);
|
|
113
112
|
const mode = useMemo(() => pickLayout(cols), [cols]);
|
|
114
|
-
const inputWidth = useMemo(
|
|
115
|
-
|
|
116
|
-
[cols],
|
|
117
|
-
);
|
|
118
|
-
const chromeWidth = useMemo(
|
|
119
|
-
() => Math.max(1, Math.min(cols, MAX_INPUT_WIDTH)),
|
|
120
|
-
[cols],
|
|
121
|
-
);
|
|
113
|
+
const inputWidth = useMemo(() => Math.max(1, cols), [cols]);
|
|
114
|
+
const chromeWidth = useMemo(() => Math.max(1, cols), [cols]);
|
|
122
115
|
const statusBarWidth = useMemo(() => Math.max(1, inputWidth - 2), [inputWidth]);
|
|
123
116
|
const isCompact = mode === "very-narrow";
|
|
124
117
|
const maxTranscriptRows = useMemo(
|