fix: show chat composer on tablet portrait (768px)#1699
Merged
Conversation
The mobile responsive block used @media (max-width: 768px), turning the sidebar into a fixed full-height overlay at exactly 768px. But the JS defaults the sidebar open at that width (sidebarOpen = innerWidth >= 768), so on standard iPad portrait (768px) the overlay sidebar covered the bottom message composer, making it appear to be missing. Align the CSS breakpoint with the JS <768 "mobile" convention by changing it to max-width: 767px, so at 768px the sidebar stays in static flow beside the chat and the composer is fully visible. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner
|
Thanks for the fix. The breakpoint mismatch is real: CSS treated 768px as mobile while the JS opened the sidebar at 768px, so the left sidebar became an overlay. This one-line change aligns the CSS with the existing JS breakpoint behavior, and I don't see a regression risk. This looks good to me, and I'm going to merge it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
At 768px viewport width (standard iPad portrait), the bottom chat composer / message text box did not appear in the admin chat UI.
Why
The mobile responsive CSS block used
@media (max-width: 768px), which turns the left sidebar into a fixed, full-height overlay at exactly 768px. But the JS initializes the sidebar open at that same width:So at exactly 768px the overlay sidebar is open by default and covers the bottom message composer, making it look like the input box is missing. This is an off-by-one against Tailwind's
<768 = mobileconvention that the JS already follows.Fix
Change the mobile breakpoint from
max-width: 768pxtomax-width: 767pxinomlx/admin/templates/chat.html, so at 768px the sidebar stays in static flow beside the chat and the composer is fully visible.Testing
Ran the server against this template and loaded
/admin/chatat 768×1024:position: static), beside the chat — not as an overlay.x=325, w=378), no overlap with the sidebar.max-width: 767px.🤖 Generated with Claude Code