The search bar and OllamaMax logo now automatically move to the bottom of the page after the first message is sent, creating a more natural chat experience.
- Center Content: Logo and search bar displayed in the center of the screen
- Bottom Input: Hidden
- Purpose: Clean, focused landing page experience
- Center Content: Automatically hidden
- Bottom Input: Appears at the bottom of the page
- Chat Messages: Adjust to make room for bottom input
- Purpose: Traditional chat interface with input at bottom
<div class="center-content">
<div class="brand-container">
<img src="images/ollama.png" alt="Ollama Logo">
<h1 class="brand-title">OllamaMax</h1>
</div>
<div class="center-input-container">
<!-- Initial input area with action buttons -->
</div>
</div><div class="bottom-input-area" id="bottom-input-area">
<div class="bottom-input-wrapper">
<textarea id="user-input-bottom"></textarea>
<button id="send-button-bottom">Send</button>
</div>
</div>.bottom-input-area {
position: fixed;
bottom: 0;
left: var(--sidebar-width); /* 60px */
right: 0;
background-color: var(--bg-primary);
border-top: 1px solid var(--border-color);
padding: 16px 20px;
z-index: 100;
}.chat-messages {
padding-bottom: 100px; /* Extra space for scrolling */
}
.chat-messages.with-bottom-input {
bottom: 90px; /* Make room for bottom input */
}- User sends first message
hideCenterContent()is called- Center content gets
hideclass - Bottom input area display changes from
nonetoflex - Chat messages get
with-bottom-inputclass - All subsequent messages use bottom input
- Bottom Send Button: Sends message and clears input
- Enter Key: Same as clicking send (Shift+Enter for new line)
- Auto-resize: Textarea grows/shrinks with content
- Max width: 800px (matches chat messages)
- Centered: Horizontally centered in available space
- Rounded: 24px border radius for modern look
- Accent color: Send button uses primary accent color
- Responsive: Adjusts to sidebar width
- Padding: 16px vertical, 20px horizontal
- Gap: 12px between textarea and send button
- Bottom margin: Chat messages have 100px padding-bottom for smooth scrolling
- ❌ Input moves to top after sending
- ❌ User must scroll to see input after responses
- ❌ Feels disjointed
- ✅ Input stays at bottom (natural chat UX)
- ✅ Always visible and accessible
- ✅ Smooth conversation flow
- ✅ Matches popular chat apps (Slack, Discord, etc.)
- Modern browsers: Full support
- Position fixed: Widely supported
- Flexbox: Standard layout
- Textarea auto-resize: JavaScript-based, universal
The bottom input area adapts to mobile screens:
- Adjusts for sidebar collapse
- Touch-friendly button size
- Native keyboard handling
- Open
http://localhost:8888 - Expected: Logo and search bar in center
- Expected: No bottom input visible
- Type message in center input
- Click send or press Enter
- Expected: Center content disappears
- Expected: Bottom input appears
- Expected: Chat messages adjust spacing
- Type message in bottom input
- Send message
- Expected: Input clears but remains at bottom
- Expected: New messages appear above
- Expected: Auto-scroll to latest message
- Type multiple lines in bottom input
- Expected: Textarea grows vertically
- Send message
- Expected: Textarea resets to single line height
Updated CSS version to v=4 to force browser reload.
To see changes:
- Hard refresh:
Ctrl+Shift+R(Linux/Windows) orCmd+Shift+R(Mac) - Or open in incognito/private window
- Smooth transition animation when switching from center to bottom
- Option to toggle between center and bottom input
- Voice input button in bottom area
- File upload button in bottom area
- Typing indicator above bottom input
- Quick actions/shortcuts in bottom area