Skip to content

Commit c896198

Browse files
committed
wip: input height fix when padding+border+text
1 parent 74b52cf commit c896198

7 files changed

Lines changed: 298 additions & 207 deletions

File tree

dump/metrics.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
263fps | 3.8ms avg (2-5.8, p99:5.7) | 8MB | 331 frames
2-
serialize: 0.4ms (0.1-0.9) [tree→rust]
3-
textSync: 0.4ms (0.1-0.9, p99:0.9) | ops:41 avg 98 max | bytes:967.9 avg 2316 max
4-
rust: 2.5ms (1.6-3.4) [layout+paint]
5-
sync: 0.1ms (0-0.5) [frames→JS]
6-
flush: 0.2ms (0.1-0.6) [terminal I/O]
1+
533fps | 1.9ms avg (0.6-4, p99:4) | 12MB | 33 frames
2+
serialize: 0.5ms (0.1-1.4) [tree→rust]
3+
textSync: 0.5ms (0.1-1.4, p99:1.3) | ops:3.9 avg 42 max | bytes:145.5 avg 2082 max
4+
rust: 0.6ms (0.1-1.5) [layout+paint]
5+
sync: 0.1ms (0-0.4) [frames→JS]
6+
flush: 0.2ms (0-0.7) [terminal I/O]

dump/screen.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[smoke:status] booting
2-
┌──────────────────────────────────────────────────────────────────────────────────────────────────┐│ ││ letui smoke ││ status: booting ││ ┌──────────────────────────────────────────────────────────────────────────────────────────────┐ ││ │ █ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ │ │ ││ └──────────────────────────────────────────────────────────────────────────────────────────────┘ ││ input: ││ submit: waiting ││ │└──────────────────────────────────────────────────────────────────────────────────────────────────┘┌──────────────────────────────────────────────────────────────────────────────────────────────┐││││││││││││││││││││││││││││││││││││││││└───────────────────────────────────────────────────────────────────────────────────────���──────┘[smoke:input] t
2+
┌──────────────────────────────────────────────────────────────────────────────────────────────────┐│ ││ letui smoke ││ status: booting ││ ┌──────────────────────────────────────────────────────────────────────────────────────────────┐ ││ │ │ ││ │ │ ││ │ │ ││ └──────────────────────────────────────────────────────────────────────────────────────────────┘ ││ input: ││ submit: waiting ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ │└──────────────────────────────────────────────────────────────────────────────────────────────────┘┌──────────────────────────────────────────────────────────────────────────────────────────────┐│││█│││└──────────────────────────────────────────────────────────────────────────────────────────────┘[smoke:input] t
33
t█t[smoke:input] ty
44
y█y[smoke:input] typ
55
p█p[smoke:input] type

examples/ai-agent-codex.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,13 +1121,12 @@ const composer = Input({
11211121
border: idleBorder,
11221122
padding: "1 0",
11231123
foreground: THEME.text,
1124-
minHeight: 3,
11251124
onSubmit: submitPrompt,
11261125
onFocus: (self) => self.setStyle({ border: focusBorder }),
11271126
onBlur: (self) => self.setStyle({ border: idleBorder }),
11281127
});
11291128

1130-
const composerRow = Row({ minHeight: 3, alignItems: "stretch" }, [composer]);
1129+
const composerRow = Row({ alignItems: "stretch" }, [composer]);
11311130

11321131
const composerPanel = Column(
11331132
{

0 commit comments

Comments
 (0)