Tweak styles of header and history (#487)

This commit is contained in:
Jeremy 2024-11-05 14:16:27 +03:00 committed by GitHub
parent cab9fddecc
commit 94f563f179
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 65 additions and 64 deletions

View file

@ -32,7 +32,6 @@ import {
import {
SidebarGroup,
SidebarGroupContent,
SidebarGroupLabel,
SidebarMenu,
SidebarMenuAction,
SidebarMenuButton,
@ -136,12 +135,8 @@ export function SidebarHistory({ user }: { user: User | undefined }) {
if (!user) {
return (
<SidebarGroup>
<div className="px-2 py-1 text-xs text-sidebar-foreground/50">
Today
</div>
<SidebarGroupContent>
<div className="text-zinc-500 h-dvh w-full flex flex-row justify-center items-center text-sm gap-2">
<InfoIcon />
<div className="text-zinc-500 w-full flex flex-row justify-center items-center text-sm gap-2">
<div>Login to save and revisit previous chats!</div>
</div>
</SidebarGroupContent>
@ -181,18 +176,12 @@ export function SidebarHistory({ user }: { user: User | undefined }) {
if (history?.length === 0) {
return (
<SidebarGroup>
<div className="px-2 py-1 text-xs text-sidebar-foreground/50">
Today
</div>
<SidebarGroupContent>
<SidebarMenu>
<SidebarMenuItem>
<SidebarMenuButton>
<InfoIcon />
<span>No previous chats</span>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
<div className="text-zinc-500 w-full flex flex-row justify-center items-center text-sm gap-2">
<div>
Your conversations will appear here once you start chatting!
</div>
</div>
</SidebarGroupContent>
</SidebarGroup>
);