Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat(web): slide mobile inbox drawer from user bar

Gus71e491302e09
diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.css
index 6b7b75503..a3401d82c 100644
--- a/src/web/src/app/globals.css
+++ b/src/web/src/app/globals.css
@@ -3028,3 +3028,28 @@ body {
opacity: 0.55;
}
}
+
+.community-inbox-drawer-viewport {
+ clip-path: inset(-24px -24px 0 -24px);
+}
+
+.community-inbox-drawer {
+ animation: none;
+ transform: translateY(0);
+ transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
+}
+
+.community-inbox-drawer[data-starting-style],
+.community-inbox-drawer[data-ending-style] {
+ transform: translateY(100%);
+}
+
+.community-inbox-drawer[data-ending-style] {
+ transition-duration: 180ms;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .community-inbox-drawer {
+ transition: none;
+ }
+}
diff --git a/src/web/src/components/community/shell/community-inbox-surface.tsx b/src/web/src/components/community/shell/community-inbox-surface.tsx
index aa2c18509..ff402de5e 100644
--- a/src/web/src/components/community/shell/community-inbox-surface.tsx
+++ b/src/web/src/components/community/shell/community-inbox-surface.tsx
@@ -93,6 +93,7 @@ export function CommunityInboxSurface({
{mobile ? (
<PopoverPortal>
<PopoverPositioner
+ className="community-inbox-drawer-viewport"
anchor={anchorRef}
positionMethod="fixed"
side="top"
@@ -110,7 +111,7 @@ export function CommunityInboxSurface({
finalFocus={() => (
suppressFocusReturnRef.current ? false : triggerRef.current
)}
- className="w-(--anchor-width) origin-bottom border-0 bg-transparent p-0 shadow-none"
+ className="community-inbox-drawer w-(--anchor-width) origin-bottom border-0 bg-transparent p-0 shadow-none"
>
<PopoverTitle className="sr-only">Inbox</PopoverTitle>
<div