Refactor: Move New Chat button

This commit is contained in:
gpt-engineer-app[bot]
2025-10-16 19:09:47 +00:00
parent 107e5ff043
commit 873cc533aa
2 changed files with 8 additions and 18 deletions
+2 -17
View File
@@ -42,16 +42,8 @@ export const Layout = ({ children, activeTab, onTabChange }: LayoutProps) => {
</Button>
</div>
{/* New Chat Button */}
<div className="p-4">
<Button className="w-full gap-2 cyber-glow" variant="default">
<Plus className="w-4 h-4" />
Novo Chat
</Button>
</div>
{/* Navigation Tabs */}
<nav className="flex-1 px-3 py-2 space-y-1">
{/* Navigation Tabs */}
<nav className="flex-1 px-3 py-2 space-y-1">
{tabs.map((tab) => {
const Icon = tab.icon;
const isActive = activeTab === tab.id;
@@ -106,13 +98,6 @@ export const Layout = ({ children, activeTab, onTabChange }: LayoutProps) => {
</div>
</div>
{/* New Chat Button - Icon only */}
<div className="p-3">
<Button size="icon" className="w-full cyber-glow">
<Plus className="w-4 h-4" />
</Button>
</div>
{/* Navigation Icons */}
<nav className="flex-1 px-2 py-2 space-y-1">
{tabs.map((tab) => {
+6 -1
View File
@@ -1,5 +1,5 @@
import { useState } from "react";
import { Search, Folder, FolderPlus, MessageSquare, MoreVertical, Trash2, Edit, FolderInput, ChevronLeft, ChevronRight } from "lucide-react";
import { Search, Folder, FolderPlus, MessageSquare, MoreVertical, Trash2, Edit, FolderInput, ChevronLeft, ChevronRight, Plus } from "lucide-react";
import { Input } from "@/components/ui/input";
import { Button } from "@/components/ui/button";
import { ScrollArea } from "@/components/ui/scroll-area";
@@ -218,6 +218,11 @@ export const ChatSidebar = ({ isCollapsed, onToggleCollapse }: ChatSidebarProps)
/>
</div>
<Button className="w-full gap-2 cyber-glow" variant="default">
<Plus className="w-4 h-4" />
Novo Chat
</Button>
<Dialog open={isCreateFolderOpen} onOpenChange={setIsCreateFolderOpen}>
<DialogTrigger asChild>
<Button variant="outline" className="w-full gap-2" size="sm">