Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/next-app.generated.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions test/composer-one-row.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ test('the Explain button itself still works while Explain mode is on', () => {
test('what / serves includes the modal', () => {
expect(built).toContain('peekGrow');
});

test('the placeholder fits one line on a 375px phone (24 characters or fewer)', () => {
const placeholder = app.match(/placeholder="([^"]+)"/)[1];
expect([...placeholder].length).toBeLessThanOrEqual(24);
});
2 changes: 1 addition & 1 deletion web/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export default function App({scheme = 'system', setScheme = () => {}}) {
<ChatLayout style={{flex: 1, minHeight: 0}} density="spacious"
composer={
<ChatComposer className="one-row" value={value} onChange={setValue} onSubmit={submit} onStop={() => ctl.current && ctl.current.abort()} isStopShown={busy} isDisabled={false}
placeholder="Ask anything, or describe what to make…"
placeholder="Ask or describe a site…"
input={<ChatComposerInput enterKeyHint={touch ? 'enter' : 'send'} onKeyDown={(e) => {
if (touch && e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); document.execCommand('insertLineBreak'); }
}} />}
Expand Down
Loading