Skip to content

Commit 6fe7456

Browse files
committed
hide analyse button
1 parent f11febc commit 6fe7456

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/QueryInterface.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,12 @@ export default function QueryInterface({ config, onDisconnect }: QueryInterfaceP
961961
<div className="flex space-x-4">
962962
<textarea
963963
value={query}
964-
onChange={(e) => setQuery(e.target.value)}
964+
onChange={(e) => {
965+
setQuery(e.target.value);
966+
// Auto-adjust height
967+
e.target.style.height = 'auto';
968+
e.target.style.height = `${e.target.scrollHeight}px`;
969+
}}
965970
onKeyDown={(e) => {
966971
if (e.key === 'Enter' && !e.shiftKey) {
967972
e.preventDefault();
@@ -971,7 +976,8 @@ export default function QueryInterface({ config, onDisconnect }: QueryInterfaceP
971976
}
972977
}}
973978
placeholder="Ask a question about your database..."
974-
className="flex-1 rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-gray-900 min-h-[80px] resize-y"
979+
className="flex-1 rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-gray-900 min-h-[80px] overflow-y-hidden"
980+
style={{ resize: 'none' }}
975981
disabled={loading || !!pendingQuery}
976982
/>
977983
<button

0 commit comments

Comments
 (0)