Skip to content

Refactor AppShell and Chat components for improved layout and mobile responsiveness#3

Merged
etsraphael merged 2 commits intomainfrom
feature/chat-responsive
Mar 18, 2026
Merged

Refactor AppShell and Chat components for improved layout and mobile responsiveness#3
etsraphael merged 2 commits intomainfrom
feature/chat-responsive

Conversation

@etsraphael
Copy link
Copy Markdown
Owner

Enhance the layout and mobile responsiveness of the AppShell and Chat components by adjusting styles and implementing a sidebar for better navigation on smaller screens. This update improves user experience across devices.

Copilot AI review requested due to automatic review settings March 18, 2026 05:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the Chat page layout and the AppShell spacing to improve mobile responsiveness, including a slide-in history sidebar for smaller screens.

Changes:

  • Added a mobile slide-in session history sidebar with backdrop and close controls in Chat.
  • Adjusted Chat spacing/sizing for messages and input bar across breakpoints.
  • Tightened AppShell header/content padding and enabled horizontal scrolling for nav tabs on small screens.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
forge-fe/src/pages/Chat.tsx Adds mobile sidebar/backdrop and updates responsive spacing for chat UI.
forge-fe/src/components/app-shell.tsx Tweaks responsive padding and makes nav horizontally scrollable on small screens.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<>
{/* Mobile backdrop */}
{open && (
<div
Comment on lines +127 to +136
<span
onClick={(e) => {
e.stopPropagation()
onDelete(s.id)
}}
title="Delete"
className="mt-0.5 shrink-0 rounded p-0.5 opacity-50 transition-opacity hover:text-red-400 md:opacity-0 md:group-hover:opacity-100"
>
<Trash2 className="size-3" />
</span>
className={cn(
'flex w-56 shrink-0 flex-col border-r border-border bg-background',
'fixed inset-y-0 left-0 z-50 transition-transform duration-200 md:relative md:z-auto md:translate-x-0 md:transition-none',
open ? 'translate-x-0' : '-translate-x-full',
<div className="flex items-center border-b border-border px-3 py-2 md:hidden">
<button
onClick={() => setSidebarOpen(true)}
className="flex size-8 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-surface-hover hover:text-foreground"
@etsraphael etsraphael merged commit c2858c3 into main Mar 18, 2026
1 check failed
@etsraphael etsraphael deleted the feature/chat-responsive branch March 19, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants