Tweak styles of header and history (#487)
This commit is contained in:
parent
cab9fddecc
commit
94f563f179
7 changed files with 65 additions and 64 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue