feat: enhance sidebar components for mobile responsiveness by conditionally rendering tooltips and updating button functionality

This commit is contained in:
Anish Sarkar 2026-02-06 23:34:35 +05:30
parent bacda8cb08
commit 306c8e3c54
3 changed files with 82 additions and 40 deletions

View file

@ -153,8 +153,22 @@ export function MobileSidebar({
onChatRename={onChatRename}
onChatDelete={onChatDelete}
onChatArchive={onChatArchive}
onViewAllSharedChats={onViewAllSharedChats}
onViewAllPrivateChats={onViewAllPrivateChats}
onViewAllSharedChats={
onViewAllSharedChats
? () => {
onOpenChange(false);
onViewAllSharedChats();
}
: undefined
}
onViewAllPrivateChats={
onViewAllPrivateChats
? () => {
onOpenChange(false);
onViewAllPrivateChats();
}
: undefined
}
user={user}
onSettings={onSettings}
onManageMembers={onManageMembers}