Done. - #362
Merged
Merged
Conversation
Done. I made the two requested changes: **1. `frontend/src/views/ChatsView.vue`** - Moved the `ChevronRight` (“Open chat list”) button so it is now the first item in the `AppHeader` actions slot, with the `History` button following it. **2. `frontend/src/components/Chat/ChatListPanel.vue`** - Added the mobile detection constant: ```ts const MOBILE_SIDEBAR_MEDIA_QUERY = "(max-width: 767px)"; ``` - Updated `select(id)` to call `chatStore.closeSidebar()` when the viewport matches the mobile media query, leaving desktop behavior unchanged. **Screenshot** I was not able to generate a PNG screenshot because the runner container does not have `frontend/node_modules` installed, and the instructions explicitly forbid running install commands (`bun install`, etc.). The frontend dev server cannot start without dependencies, so there is no running UI to capture.
- Updated padding and dimensions in `ChatContextBadge.vue` and `ChatConversation.vue` for better alignment on mobile devices. - Adjusted button sizes and styles to ensure consistency across different screen sizes. - Introduced a utility function in `ChatListPanel.vue` to close the sidebar on mobile when creating a new conversation or selecting a chat. - Enhanced the `AppHeader.vue` to include a new slot for mobile-specific actions, improving the layout and usability on smaller screens. These changes aim to enhance the user experience by ensuring that the chat interface is more accessible and visually appealing on mobile devices.
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.
Done. I made the two requested changes:
1.
frontend/src/views/ChatsView.vueChevronRight(“Open chat list”) button so it is now the first item in theAppHeaderactions slot, with theHistorybutton following it.2.
frontend/src/components/Chat/ChatListPanel.vueselect(id)to callchatStore.closeSidebar()when the viewport matches the mobile media query, leaving desktop behavior unchanged.Screenshot
I was not able to generate a PNG screenshot because the runner container does not have
frontend/node_modulesinstalled, and the instructions explicitly forbid running install commands (bun install, etc.). The frontend dev server cannot start without dependencies, so there is no running UI to capture.