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
25 changes: 21 additions & 4 deletions frontend/chat-ui/src/components/InputBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,27 @@ export default function InputBox() {
className="hidden"
onChange={(e) => handleFile(e.target.files[0])}
/>
<button onClick={() => fileInputRef.current?.click()} className="p-2" title="Attach" disabled={pending}>
<button
onClick={() => fileInputRef.current?.click()}
className="p-2 flex-shrink-0"
title="Attach"
disabled={pending}
>
📎
</button>
{file && (
<span className="text-sm" title={file.name}>{file.name}</span>
)}
<button onClick={voice} className="p-2" title="Voice input" disabled={pending}>🎤</button>
<button
onClick={voice}
className="p-2 flex-shrink-0"
title="Voice input"
disabled={pending}
>
🎤
</button>
<textarea
className="flex-1 border rounded p-2"
className="flex-1 min-w-0 border rounded p-2"
rows={1}
value={text}
onChange={(e) => setText(e.target.value)}
Expand All @@ -95,7 +107,12 @@ export default function InputBox() {
aria-label="Chat input"
disabled={pending}
/>
<button onClick={send} className="p-2" title="Send" disabled={pending}>
<button
onClick={send}
className="p-2 flex-shrink-0"
title="Send"
disabled={pending}
>
📨
</button>
</div>
Expand Down
5 changes: 4 additions & 1 deletion frontend/chat-ui/src/components/ProfileMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export default function ProfileMenu() {
const toggleMemory = () => dispatch({ type: 'TOGGLE_MEMORY' });

return (
<div className="absolute bottom-2 left-2">
<div
className="fixed bottom-2 transition-all"
style={{ left: state.sidebarOpen ? '15.5rem' : '0.5rem' }}
>
<button className="p-2 rounded-full" onClick={() => setOpen((o) => !o)} title="Profile">
⚙️
</button>
Expand Down