From 321390ea0adf1ab2a9993b013fdfc48614684348 Mon Sep 17 00:00:00 2001 From: aedes Date: Tue, 21 Apr 2026 14:32:03 +0300 Subject: [PATCH] feat: fixed-height near-white input, terse-answer system prompt --- public/index.html | 14 +++++++------- server.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/index.html b/public/index.html index a665eb8..a5478ef 100644 --- a/public/index.html +++ b/public/index.html @@ -72,16 +72,21 @@ width: 100%; border: none; background: transparent; - color: #555; + color: #f2f2f2; font-size: 14px; outline: none; resize: none; + height: 28px; + max-height: 28px; min-height: 28px; line-height: 1.5; padding: 4px 0; + overflow: hidden; + white-space: nowrap; font-family: proxima_nova_rgregular, Arial, sans-serif; + caret-color: #c4c4c4; } - #chat-input::placeholder { color: #d0d0d0; } + #chat-input::placeholder { color: transparent; } /* Slight override to keep well-lg radius 0 like real portal */ .well-lg { border-radius: 0; } @@ -356,11 +361,6 @@ }, 50); }); - // Auto-grow textarea - inputEl.addEventListener('input', () => { - inputEl.style.height = 'auto'; - inputEl.style.height = inputEl.scrollHeight + 'px'; - }); diff --git a/server.js b/server.js index 637e7c9..d572f24 100644 --- a/server.js +++ b/server.js @@ -63,7 +63,7 @@ app.post('/api/chat', async (req, res) => { model: modelId, max_tokens: 8192, stream: true, - system: "You are Claude Code, Anthropic's official CLI for Claude.", + system: "You are Claude Code, Anthropic's official CLI for Claude.\n\nAnswer in the same language as the user. Give the shortest possible correct answer. No greetings, no filler, no emojis, no markdown formatting unless the user explicitly asks for code. Do not restate the question. Do not add caveats or disclaimers. Respond with just the answer — nothing else.", messages: [{ role: 'user', content: text }], }), });