You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ScrollAreaclassName="h-[300px] overflow-y-scroll p-3">{sortedData.length===0 ? (<pclassName="text-center text-muted-foreground p-3 text-sm">No notifications</p>) : (sortedData.map((notification)=>(<divkey={notification.id}className={`w-full mb-2 rounded-lg flex cursor-pointer hover:bg-secondary transition-all duration-150 items-center gap-5 px-3 py-2 text-left h-auto ${!notification.read ? "bg-muted/75" : "bg-muted/40"}`}onClick={()=>handleToggleRead(id!,notification.id.toString())}><divclassName="flex flex-col"><divclassName="flex justify-between items-center gap-2"><spanclassName="font-medium text-sm truncate">{notification.title}</span><spanclassName="text-[10px] text-muted-foreground whitespace-nowrap">{notification.createdAt
? newDate(notification.createdAt).toLocaleString("es-ES",{month: "short",day: "numeric",hour: "numeric",minute: "numeric",})
: ""}</span></div><pclassName="text-xs text-muted-foreground whitespace-normal break-words break-all">{notification.title==="Family Invitation"
? "Open the dialog for more information"
: notification.message}</p></div>{notification.title==="Family Invite"&&<FamilyInviteDialognotification={notification}/>}</div>)))}</ScrollArea>```
NamelythisScrollAreacomponent.ThisoneisinaNavSecondaryofaSidebar.Itjustwon't swipe up or down on cellphones, it only scrolls on moving the scrollbar that the overflow generates. I'vebeenthroughthedocsofradix-ui,andIcannotdebugthisbehaviourforthelifeofme.Ifanyonegotintoabuglikethisandfoundthesolutionpleaseletmeknow!Andifyouneedabitmorecontent,I'll be sure to check up on this issue regularly!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions