Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix(web): unify user bar side padding (#968)
Gener2c46d70f3a60
diff --git a/src/web/src/components/community/shell/user-bar.test.ts b/src/web/src/components/community/shell/user-bar.test.tsindex 418c8b33e..5a5dd7c32 100644--- a/src/web/src/components/community/shell/user-bar.test.ts+++ b/src/web/src/components/community/shell/user-bar.test.ts@@ -60,7 +60,7 @@ describe("UserBar", () => {expect(html).toContain("pr-[max(0.75rem,var(--app-safe-area-right))]")expect(html).toContain("pb-[calc(0.75rem+var(--app-safe-area-bottom))]")expect(html).toContain("sm:px-2 sm:pb-3")- expect(html).toContain("flex h-12 items-center gap-3 border border-border/40 bg-muted px-4")+ expect(html).toContain("flex h-12 items-center gap-3 border border-border/40 bg-muted px-2")expect(html).not.toContain("ring-1 ring-border/40")expect(html).toContain('class="flex min-w-0 flex-1 items-center justify-between gap-2 sm:@max-[224px]/user-bar:gap-1"')expect(html).toContain('data-testid="community-user-bar-name"')@@ -97,7 +97,7 @@ describe("UserBar", () => {expect(html).toContain("pb-[calc(0.75rem+var(--app-safe-area-bottom))]")expect(html).toContain("sm:px-2 sm:pb-3")expect(html).toContain(- "flex h-12 items-center gap-3 rounded-xl border border-border/40 bg-muted px-4 sm:@max-[224px]/user-bar:px-2",+ "flex h-12 items-center gap-3 rounded-xl border border-border/40 bg-muted px-2",)expect(html).not.toContain("ring-1 ring-border/40")expect(html).not.toContain("<button")@@ -111,7 +111,7 @@ describe("UserBar", () => {inboxOpen: true,}))expect(openHtml).toContain(- 'class="flex h-12 items-center gap-3 border border-border/40 bg-muted px-4 sm:@max-[224px]/user-bar:px-2 rounded-b-xl"',+ 'class="flex h-12 items-center gap-3 border border-border/40 bg-muted px-2 rounded-b-xl"',)const closedHtml = renderToStaticMarkup(createElement(UserBar, {@@ -120,7 +120,7 @@ describe("UserBar", () => {inboxOpen: false,}))expect(closedHtml).toContain(- 'class="flex h-12 items-center gap-3 border border-border/40 bg-muted px-4 sm:@max-[224px]/user-bar:px-2 rounded-xl"',+ 'class="flex h-12 items-center gap-3 border border-border/40 bg-muted px-2 rounded-xl"',)const profileHtml = renderToStaticMarkup(createElement(UserBar, {@@ -139,7 +139,7 @@ describe("UserBar", () => {},}))expect(profileHtml).toContain(- 'class="flex h-12 items-center gap-3 border border-border/40 bg-muted px-4 sm:@max-[224px]/user-bar:px-2 rounded-b-xl"',+ 'class="flex h-12 items-center gap-3 border border-border/40 bg-muted px-2 rounded-b-xl"',)})diff --git a/src/web/src/components/community/shell/user-bar.tsx b/src/web/src/components/community/shell/user-bar.tsxindex f165eda62..55c8d48c6 100644--- a/src/web/src/components/community/shell/user-bar.tsx+++ b/src/web/src/components/community/shell/user-bar.tsx@@ -126,7 +126,7 @@ export function UserBar({ breakpoint, user, onOpenProfile, onEditProfile, inbox,ref={baseRef}data-slot="community-user-bar-base"className={cn(- "flex h-12 items-center gap-3 border border-border/40 bg-muted px-4 sm:@max-[224px]/user-bar:px-2",+ "flex h-12 items-center gap-3 border border-border/40 bg-muted px-2",joinedMobileExtension? "rounded-b-xl": "rounded-xl",@@ -165,7 +165,7 @@ export function UserBarSkeleton() {aria-hiddenclassName="@container/user-bar w-full min-w-0 max-w-full shrink-0 overflow-hidden pl-[max(0.75rem,var(--app-safe-area-left))] pr-[max(0.75rem,var(--app-safe-area-right))] pb-[calc(0.75rem+var(--app-safe-area-bottom))] pt-0 sm:px-2 sm:pb-3">- <div className="flex h-12 items-center gap-3 rounded-xl border border-border/40 bg-muted px-4 sm:@max-[224px]/user-bar:px-2">+ <div className="flex h-12 items-center gap-3 rounded-xl border border-border/40 bg-muted px-2"><div className="flex min-w-0 flex-1 items-center justify-between gap-2 sm:@max-[224px]/user-bar:gap-1"><Skeleton className="size-7 shrink-0 rounded-full" /><Skeleton className="h-3.5 min-w-0 flex-1 rounded sm:@max-[224px]/user-bar:hidden" />