Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

removed tooltips from expanded state

Phillip Lagoc45267e275dc7
diff --git a/web/components/sidebar/SidebarShell.tsx b/web/components/sidebar/SidebarShell.tsx
index 1960b497a..98b71516f 100644
--- a/web/components/sidebar/SidebarShell.tsx
+++ b/web/components/sidebar/SidebarShell.tsx
@@ -269,9 +269,6 @@ export function SidebarShell({
{PRIMARY_NAV.map((item) => {
const active = pathname.startsWith(item.href);
- const tooltipProps = item.tooltipKey
- ? { description: t(item.tooltipKey) }
- : {};
const hasSessionsBelow =
item.href === "/chat" &&
showSessions &&
@@ -280,42 +277,35 @@ export function SidebarShell({
onDeleteSession;
const hasBots = item.href === "/agents";
return (
- <Tooltip
- key={item.href}
- label={t(item.label)}
- side="right"
- {...tooltipProps}
- >
- <div key={item.href}>
- <Link
- href={item.href}
- className={`flex items-center gap-2.5 rounded-lg px-3 py-2 text-[13.5px] transition-colors ${
- active
- ? "bg-[var(--background)]/70 font-medium text-[var(--foreground)]"
- : "text-[var(--muted-foreground)] hover:bg-[var(--background)]/50 hover:text-[var(--foreground)]"
- }`}
+ <div key={item.href}>
+ <Link
+ href={item.href}
+ className={`flex items-center gap-2.5 rounded-lg px-3 py-2 text-[13.5px] transition-colors ${
+ active
+ ? "bg-[var(--background)]/70 font-medium text-[var(--foreground)]"
+ : "text-[var(--muted-foreground)] hover:bg-[var(--background)]/50 hover:text-[var(--foreground)]"
+ }`}
+ >
+ <item.icon size={16} strokeWidth={active ? 1.9 : 1.5} />
+ <span>{t(item.label)}</span>
+ </Link>
+ {hasSessionsBelow && (
+ <div
+ className={`${sessionViewportClassName} overflow-y-auto`}
>
- <item.icon size={16} strokeWidth={active ? 1.9 : 1.5} />
- <span>{t(item.label)}</span>
- </Link>
- {hasSessionsBelow && (
- <div
- className={`${sessionViewportClassName} overflow-y-auto`}
- >
- <SessionList
- sessions={sessions}
- activeSessionId={activeSessionId}
- loading={loadingSessions}
- onSelect={onSelectSession}
- onRename={onRenameSession}
- onDelete={onDeleteSession}
- compact
- />
- </div>
- )}
- {hasBots && <TutorBotRecent />}
- </div>
- </Tooltip>
+ <SessionList
+ sessions={sessions}
+ activeSessionId={activeSessionId}
+ loading={loadingSessions}
+ onSelect={onSelectSession}
+ onRename={onRenameSession}
+ onDelete={onDeleteSession}
+ compact
+ />
+ </div>
+ )}
+ {hasBots && <TutorBotRecent />}
+ </div>
);
})}
</div>