Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(web): detach desktop user bar popups from sidebar width (#823)

Gustavo Ye7258a2665598
diff --git a/src/web/src/components/community/shell/shell-frame-geometry.test.ts b/src/web/src/components/community/shell/shell-frame-geometry.test.ts
index 082516f3a..5e39a1c77 100644
--- a/src/web/src/components/community/shell/shell-frame-geometry.test.ts
+++ b/src/web/src/components/community/shell/shell-frame-geometry.test.ts
@@ -39,7 +39,7 @@ describe("desktop community shell geometry", () => {
const overlayWidth = desktopUserBarOverlayWidth(COMMUNITY_SIDEBAR_DEFAULT_WIDTH)
expect(COMMUNITY_SIDEBAR_DEFAULT_WIDTH).toBe(317)
- expect(COMMUNITY_SIDEBAR_MIN_WIDTH).toBe(300)
+ expect(COMMUNITY_SIDEBAR_MIN_WIDTH).toBe(100)
expect(COMMUNITY_SIDEBAR_MAX_WIDTH).toBe(360)
expect(overlayWidth).toBe(375)
expect(overlayWidth - (2 * COMMUNITY_USER_BAR_DESKTOP_INSET)).toBe(359)
diff --git a/src/web/src/components/community/shell/shell-frame-geometry.ts b/src/web/src/components/community/shell/shell-frame-geometry.ts
index 5dfbea0cc..36b276125 100644
--- a/src/web/src/components/community/shell/shell-frame-geometry.ts
+++ b/src/web/src/components/community/shell/shell-frame-geometry.ts
@@ -4,7 +4,7 @@ export const COMMUNITY_SEPARATOR_WIDTH = 1
export const COMMUNITY_USER_BAR_DESKTOP_INSET = 8
export const COMMUNITY_COMPOSER_DESKTOP_INSET = 12
export const COMMUNITY_SIDEBAR_DEFAULT_WIDTH = 317
-export const COMMUNITY_SIDEBAR_MIN_WIDTH = 300
+export const COMMUNITY_SIDEBAR_MIN_WIDTH = 100
export const COMMUNITY_SIDEBAR_MAX_WIDTH = 360
export const COMMUNITY_USER_BAR_BASE_HEIGHT = 60
export const COMMUNITY_USER_BAR_HEIGHT_CSS =
diff --git a/src/web/src/components/community/shell/shell-frame-view.dom.test.ts b/src/web/src/components/community/shell/shell-frame-view.dom.test.ts
index 4a780f417..aa6048e55 100644
--- a/src/web/src/components/community/shell/shell-frame-view.dom.test.ts
+++ b/src/web/src/components/community/shell/shell-frame-view.dom.test.ts
@@ -290,7 +290,7 @@ describe("ShellFrameView", () => {
expect(sidebarPanel).toMatchObject({
id: "sidebar",
defaultSize: 317,
- minSize: 300,
+ minSize: 100,
maxSize: 360,
groupResizeBehavior: "preserve-pixel-size",
})
@@ -371,7 +371,7 @@ describe("ShellFrameView", () => {
expect(renderer.container.querySelector<HTMLElement>(
'[data-slot="community-user-bar-overlay"]',
)!.style.getPropertyValue("--community-desktop-user-bar-width")).toBe(
- "calc(clamp(300px, calc(18.75% - 0.375px), 360px) + 58px)",
+ "calc(clamp(100px, calc(18.75% - 0.375px), 360px) + 58px)",
)
})
diff --git a/src/web/src/components/community/shell/user-bar-extension-slot.tsx b/src/web/src/components/community/shell/user-bar-extension-slot.tsx
index 183339a95..7afabefcf 100644
--- a/src/web/src/components/community/shell/user-bar-extension-slot.tsx
+++ b/src/web/src/components/community/shell/user-bar-extension-slot.tsx
@@ -37,6 +37,7 @@ type Props = {
animate?: boolean
focusOnOpen?: boolean
onInitialFocus?: () => void
+ presentation?: "slot" | "popup"
}
export function UserBarExtensionSlot({
@@ -52,6 +53,7 @@ export function UserBarExtensionSlot({
animate = true,
focusOnOpen = false,
onInitialFocus,
+ presentation = "slot",
}: Props) {
const ref = useRef<HTMLDivElement>(null)
@@ -78,10 +80,10 @@ export function UserBarExtensionSlot({
}, [interactive, onDismiss, onDismissOutside])
useEffect(() => {
- if (!interactive || !focusOnOpen) return
+ if ((!interactive && presentation === "slot") || !focusOnOpen) return
ref.current?.focus({ preventScroll: true })
onInitialFocus?.()
- }, [active, interactive, focusOnOpen, onInitialFocus])
+ }, [active, interactive, presentation, focusOnOpen, onInitialFocus])
const title = active === "inbox"
? "Inbox"
@@ -98,9 +100,11 @@ export function UserBarExtensionSlot({
aria-label={title}
data-testid={tid.userBarExtension}
data-extension={active}
+ data-presentation={presentation}
tabIndex={-1}
className={cn(
- "relative min-h-0 origin-bottom overflow-hidden rounded-t-xl border-x border-t border-border/40 bg-popover text-popover-foreground shadow-(--e2) [clip-path:inset(-2rem_-2rem_0)]",
+ "relative min-h-0 origin-bottom overflow-hidden border-border/40 bg-popover text-popover-foreground shadow-(--e2)",
+ presentation === "popup" ? "rounded-xl border" : "rounded-t-xl border-x border-t [clip-path:inset(-2rem_-2rem_0)]",
animate && "motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-bottom-1 motion-safe:duration-150",
active === "inbox" && "flex flex-col",
)}
diff --git a/src/web/src/components/community/shell/user-bar-popover.tsx b/src/web/src/components/community/shell/user-bar-popover.tsx
new file mode 100644
index 000000000..c3628f158
--- /dev/null
+++ b/src/web/src/components/community/shell/user-bar-popover.tsx
@@ -0,0 +1,40 @@
+"use client"
+
+import type { ReactNode, RefObject } from "react"
+import { Popover, PopoverPortal, PopoverPositioner, PopoverPopup } from "@/components/ui/popover"
+import { tid } from "@/lib/community/testids"
+
+export function UserBarPopover({ anchor, children, onDismiss, onEscape }: {
+ anchor: RefObject<HTMLElement | null>
+ children: ReactNode
+ onDismiss: () => void
+ onEscape: () => void
+}) {
+ return (
+ <Popover open onOpenChange={(open, details) => {
+ if (open) return
+ const target = details.event instanceof FocusEvent
+ ? details.event.relatedTarget
+ : details.event.target
+ if (target instanceof Element && target.closest(`[data-testid="${tid.userBar}"]`)) {
+ details.cancel()
+ return
+ }
+ if (details.reason === "escape-key") onEscape()
+ else onDismiss()
+ }}>
+ <PopoverPortal>
+ <PopoverPositioner anchor={anchor} side="top" align="start" sideOffset={8}>
+ <PopoverPopup
+ role="presentation"
+ className="w-80 max-w-[calc(100vw-1rem)] border-0 bg-transparent p-0 shadow-none"
+ initialFocus={() => document.getElementById("community-user-bar-extension")}
+ finalFocus={false}
+ >
+ {children}
+ </PopoverPopup>
+ </PopoverPositioner>
+ </PopoverPortal>
+ </Popover>
+ )
+}
diff --git a/src/web/src/components/community/shell/user-bar.interaction.dom.test.ts b/src/web/src/components/community/shell/user-bar.interaction.dom.test.ts
index 083202504..953b1eec4 100644
--- a/src/web/src/components/community/shell/user-bar.interaction.dom.test.ts
+++ b/src/web/src/components/community/shell/user-bar.interaction.dom.test.ts
@@ -1,8 +1,9 @@
-import { createElement } from "react"
+import { createElement, useState } from "react"
import { describe, expect, it, vi } from "vitest"
import { render, screen, setupUser } from "@/test/react-dom-harness"
import { UserBar } from "./user-bar"
import { tid } from "@/lib/community/testids"
+import type { UserBarExtensionKind } from "./user-bar-extension-state"
vi.mock("../avatar", () => ({
Avatar: () => createElement("span", { "data-testid": "user-avatar" }),
@@ -54,10 +55,61 @@ describe("UserBar Inbox switching", () => {
expect(dialog.className).not.toContain("fade-in")
} else {
expect(dialog.closest(".community-user-bar-drawer")).toBeNull()
+ expect(dialog.closest(`[data-testid="${tid.userBar}"]`)).toBeNull()
+ expect(dialog.closest('[data-slot="popover-content"]')).not.toBeNull()
+ expect(dialog).toHaveAttribute("data-presentation", "popup")
+ expect(renderer.getByTestId(tid.userBar).querySelector('[data-slot="community-user-bar-base"]')).toHaveClass("rounded-xl")
expect(dialog.className).toContain("fade-in")
}
})
+ it("switches desktop pop-ups, restores focus on Escape, and dismisses outside", async () => {
+ function Harness() {
+ const [active, setActive] = useState<UserBarExtensionKind>("none")
+ const inbox = createElement("button", null, "Inbox item")
+ return createElement("div", null,
+ createElement("button", null, "Outside"),
+ createElement(UserBar, {
+ breakpoint: "desktop",
+ user: { id: "u1", name: "User", avatar: "U" },
+ inbox,
+ hasUnread: false,
+ inboxOpen: active === "inbox",
+ onInboxOpenChange: (open) => setActive(open ? "inbox" : "none"),
+ onOpenProfile: () => setActive(active === "profile" ? "none" : "profile"),
+ extension: {
+ active,
+ inbox,
+ profile: createElement("button", null, "Edit status"),
+ update: null,
+ updateBadgePhase: null,
+ eligibleMachines: [],
+ onOpenUpdate: vi.fn(),
+ onRequestUpdate: vi.fn(),
+ onDismiss: () => setActive("none"),
+ },
+ }),
+ )
+ }
+ const user = setupUser()
+ render(createElement(Harness))
+ const trigger = screen.getByTestId(tid.inboxTrigger)
+ await user.click(trigger)
+ expect(screen.getByRole("dialog", { name: "Inbox" })).toHaveFocus()
+ await user.click(screen.getByRole("button", { name: "User", exact: true }))
+ expect(screen.queryByRole("dialog", { name: "Inbox" })).not.toBeInTheDocument()
+ expect(screen.getByRole("dialog", { name: "Your profile" })).toHaveFocus()
+ await user.keyboard("{Escape}")
+ expect(screen.queryByRole("dialog")).not.toBeInTheDocument()
+ await vi.waitFor(() => expect(screen.getByRole("button", { name: "User", exact: true })).toHaveFocus())
+ await user.click(trigger)
+ await user.click(screen.getByRole("button", { name: "Outside" }))
+ expect(screen.queryByRole("dialog")).not.toBeInTheDocument()
+ await user.click(trigger)
+ await user.click(trigger)
+ expect(screen.queryByRole("dialog")).not.toBeInTheDocument()
+ })
+
it.each(["avatar", "name"])("closes before the %s profile action exactly once", async (kind) => {
const user = setupUser()
const { order, onInboxOpenChange, onOpenProfile } = renderBar()
diff --git a/src/web/src/components/community/shell/user-bar.tsx b/src/web/src/components/community/shell/user-bar.tsx
index 8400257e6..3ca563d9d 100644
--- a/src/web/src/components/community/shell/user-bar.tsx
+++ b/src/web/src/components/community/shell/user-bar.tsx
@@ -18,6 +18,7 @@ import { tid } from "@/lib/community/testids"
import { cn } from "@/lib/utils"
import { UserBarExtensionDrawer } from "./user-bar-extension-drawer"
import { UserBarExtensionSlot } from "./user-bar-extension-slot"
+import { UserBarPopover } from "./user-bar-popover"
import type {
UserBarExtensionKind,
UserBarUpdatePhase,
@@ -52,7 +53,9 @@ export function UserBar({ breakpoint, user, onOpenProfile, onEditProfile, inbox,
const lastProfileTriggerRef = useRef<HTMLButtonElement | null>(null)
const inboxTriggerRef = useRef<HTMLButtonElement>(null)
const updateBadgeRef = useRef<HTMLButtonElement>(null)
+ const baseRef = useRef<HTMLDivElement>(null)
const [pendingExtensionFocus, setPendingExtensionFocus] = useState<UserBarExtensionKind>("none")
+ const mobile = breakpoint === "mobile"
const closeInboxForAction = () => {
if (inboxOpen) onInboxOpenChange?.(false)
}
@@ -78,6 +81,8 @@ export function UserBar({ breakpoint, user, onOpenProfile, onEditProfile, inbox,
onDismiss={dismissExtensionWithFocus}
onDismissOutside={extension.onDismiss}
onRequestUpdate={extension.onRequestUpdate}
+ interactive={mobile}
+ presentation={mobile ? "slot" : "popup"}
focusOnOpen={pendingExtensionFocus === extension.active}
onInitialFocus={() => {
if (pendingExtensionFocus === extension.active) {
@@ -91,14 +96,23 @@ export function UserBar({ breakpoint, user, onOpenProfile, onEditProfile, inbox,
data-testid={tid.userBar}
className="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"
>
- {breakpoint === "mobile"
+ {mobile
? <UserBarExtensionDrawer>{extensionContent}</UserBarExtensionDrawer>
- : extensionContent}
+ : extensionContent && extension && (
+ <UserBarPopover
+ anchor={baseRef}
+ onDismiss={extension.onDismiss}
+ onEscape={dismissExtensionWithFocus}
+ >
+ {extensionContent}
+ </UserBarPopover>
+ )}
<div
+ 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",
- (extension && extension.active !== "none") || (breakpoint === "mobile" && inboxOpen)
+ mobile && ((extension && extension.active !== "none") || inboxOpen)
? "rounded-b-xl"
: "rounded-xl",
)}
diff --git a/src/web/src/test/e2e-ui/08-mobile.spec.ts b/src/web/src/test/e2e-ui/08-mobile.spec.ts
index 63ac93ad1..679108ea3 100644
--- a/src/web/src/test/e2e-ui/08-mobile.spec.ts
+++ b/src/web/src/test/e2e-ui/08-mobile.spec.ts
@@ -105,7 +105,7 @@ test.describe.serial("mobile layout", () => {
expect(groupRect).not.toBeNull()
expect(sidebarRect).not.toBeNull()
expect(mainRect).not.toBeNull()
- expect(sidebarRect!.width).toBeGreaterThanOrEqual(300)
+ expect(sidebarRect!.width).toBeGreaterThanOrEqual(100)
expect(mainRect!.width).toBeGreaterThan(0)
expect(sidebarRect!.width).toBeLessThan(groupRect!.width)
expect(mainRect!.width).toBeLessThan(groupRect!.width)
diff --git a/src/web/src/test/e2e-ui/50-daemon-update-notice.spec.ts b/src/web/src/test/e2e-ui/50-daemon-update-notice.spec.ts
index 706cc5b16..9506fbb2f 100644
--- a/src/web/src/test/e2e-ui/50-daemon-update-notice.spec.ts
+++ b/src/web/src/test/e2e-ui/50-daemon-update-notice.spec.ts
@@ -110,7 +110,7 @@ async function expectUpdateActionGeometry(
.toBeLessThanOrEqual(1)
}
-test("Update, Inbox, and viewer Profile share one persistent User Bar extension", async ({ asUser }) => {
+test("Update, Inbox, and viewer Profile share one desktop User Bar pop-up", async ({ asUser }) => {
const { page } = await asUser("alice")
const requests = await serveMachines(page)
await page.emulateMedia({ reducedMotion: "reduce" })
@@ -131,12 +131,14 @@ test("Update, Inbox, and viewer Profile share one persistent User Bar extension"
await expect(slot).toHaveCSS("animation-name", "none")
expect(requests.machineRequestCount()).toBe(1)
+ await expect.poll(async () => (await slot.boundingBox())?.width ?? 0).toBeCloseTo(320, 0)
const [slotBox, baseBox] = await Promise.all([slot.boundingBox(), userBarBase.boundingBox()])
expect(slotBox).not.toBeNull()
expect(baseBox).not.toBeNull()
- expect(Math.abs(slotBox!.y + slotBox!.height - baseBox!.y)).toBeLessThanOrEqual(1)
+ expect(slotBox!.y + slotBox!.height).toBeLessThan(baseBox!.y)
expect(Math.abs(slotBox!.x - baseBox!.x)).toBeLessThanOrEqual(1)
- expect(Math.abs(slotBox!.width - baseBox!.width)).toBeLessThanOrEqual(1)
+ expect(slotBox!.width).toBeCloseTo(320, 0)
+ await expect(slot).toHaveAttribute("data-presentation", "popup")
await page.keyboard.press("Escape")
const badge = page.getByTestId(tid.daemonUpdateBadge)
diff --git a/src/web/src/test/e2e-ui/53-mobile-inbox-surface.spec.ts b/src/web/src/test/e2e-ui/53-mobile-inbox-surface.spec.ts
index a35bbc9b2..65bc33d8d 100644
--- a/src/web/src/test/e2e-ui/53-mobile-inbox-surface.spec.ts
+++ b/src/web/src/test/e2e-ui/53-mobile-inbox-surface.spec.ts
@@ -494,7 +494,7 @@ test.describe.serial("mobile Inbox interactive user-bar base", () => {
await bob.page.setViewportSize({ width: 640, height: 844 })
await expect(bob.page.getByTestId(tid.userBarExtension)).toBeVisible()
await expect(bob.page.getByTestId(tid.userBarExtension)).toHaveAttribute("data-extension", "inbox")
- await expect(bob.page.locator("[data-slot='popover-content']")).toHaveCount(0)
+ await expect(bob.page.locator("[data-slot='popover-content']")).toHaveCount(1)
await expect(bob.page.getByRole("tab", { name: "Marked" })).toHaveAttribute("aria-selected", "true")
const desktopScroll = bob.page.getByTestId(tid.inboxTabScroll("marked"))
await expect.poll(() => desktopScroll.evaluate((element) => element.scrollTop))
@@ -517,12 +517,13 @@ test.describe.serial("mobile Inbox interactive user-bar base", () => {
const desktopContent = bob.page.getByTestId(tid.userBarExtension)
await expect(desktopContent).toBeVisible()
await expect.poll(async () => (await desktopContent.boundingBox())?.width ?? 0)
- .toBeGreaterThanOrEqual(200)
+ .toBeCloseTo(320, 0)
const desktopBox = await desktopContent.boundingBox()
const desktopBaseBox = await bob.page.locator("[data-slot='community-user-bar-base']").boundingBox()
expect(desktopBaseBox).not.toBeNull()
- expect(Math.abs((desktopBox?.width ?? 0) - desktopBaseBox!.width)).toBeLessThanOrEqual(1)
- expectJoinedBorderContract(await surfaceGeometry(bob.page))
+ expect(desktopBox!.width).toBeCloseTo(320, 0)
+ expect(desktopBox!.y + desktopBox!.height).toBeLessThan(desktopBaseBox!.y)
+ await expect(desktopContent).toHaveAttribute("data-presentation", "popup")
await expect(bob.page.getByTestId(tid.inboxMobileBackdrop)).toHaveCount(0)
await expect(bob.page.getByRole("tab", { name: "Marked" })).toHaveAttribute("aria-selected", "true")
await testInfo.attach("user-bar-extension-desktop-1280x900", {
diff --git a/src/web/src/test/e2e-ui/60-desktop-default-user-bar-width.spec.ts b/src/web/src/test/e2e-ui/60-desktop-default-user-bar-width.spec.ts
index 45ade9a48..dab71b6f8 100644
--- a/src/web/src/test/e2e-ui/60-desktop-default-user-bar-width.spec.ts
+++ b/src/web/src/test/e2e-ui/60-desktop-default-user-bar-width.spec.ts
@@ -283,6 +283,7 @@ async function readComposerGeometry(page: Page): Promise<ComposerGeometry> {
async function expectExtensionGeometry(page: Page) {
const extension = page.getByTestId(tid.userBarExtension)
+ await expect.poll(async () => (await extension.boundingBox())?.width ?? 0).toBeCloseTo(320, 0)
const base = page.getByTestId(tid.userBar).locator(
'[data-slot="community-user-bar-base"]',
)
@@ -292,15 +293,15 @@ async function expectExtensionGeometry(page: Page) {
])
expect(extensionBox).not.toBeNull()
expect(baseBox).not.toBeNull()
- expect(Math.abs(extensionBox!.width - expectedVisibleWidth)).toBeLessThanOrEqual(
+ expect(Math.abs(extensionBox!.width - 320)).toBeLessThanOrEqual(
geometryEpsilon,
)
expect(Math.abs(baseBox!.width - expectedVisibleWidth)).toBeLessThanOrEqual(
geometryEpsilon,
)
expect(Math.abs(extensionBox!.x - baseBox!.x)).toBeLessThanOrEqual(geometryEpsilon)
- expect(Math.abs(extensionBox!.x + extensionBox!.width - baseBox!.x - baseBox!.width))
- .toBeLessThanOrEqual(geometryEpsilon)
+ expect(extensionBox!.y + extensionBox!.height).toBeLessThan(baseBox!.y)
+ await expect(extension).toHaveAttribute("data-presentation", "popup")
}
async function attachScreenshot(page: Page, testInfo: TestInfo, name: string) {
@@ -450,7 +451,7 @@ test.describe.serial("desktop default User Bar width", () => {
Math.abs((await readShellGeometry(saved.page)).sidebar - expectedDefaultSidebarWidth)
)).toBeGreaterThan(1)
const restoredWidth = (await readShellGeometry(saved.page)).sidebar
- expect(restoredWidth).toBeGreaterThanOrEqual(300)
+ expect(restoredWidth).toBeGreaterThanOrEqual(100)
expect(restoredWidth).toBeLessThanOrEqual(360)
await expectDesktopGeometry(saved.page, restoredWidth)
const savedResizeSequence = [
@@ -488,7 +489,7 @@ test.describe.serial("desktop default User Bar width", () => {
)).not.toBeNull()
const resizedWidth = (await readShellGeometry(interaction.page)).sidebar
expect(Math.abs(resizedWidth - expectedDefaultSidebarWidth)).toBeGreaterThan(1)
- expect(resizedWidth).toBeGreaterThanOrEqual(300)
+ expect(resizedWidth).toBeGreaterThanOrEqual(100)
expect(resizedWidth).toBeLessThanOrEqual(360)
const storedLayout = JSON.parse(await interaction.page.evaluate(
(key) => localStorage.getItem(key)!,
@@ -525,7 +526,7 @@ test.describe.serial("desktop default User Bar width", () => {
})
})
- test("keeps a populated Inbox free of horizontal overflow at the 300px floor", async ({
+ test("keeps a populated Inbox free of horizontal overflow at the 100px floor", async ({
asUser,
}, testInfo) => {
test.setTimeout(120_000)
@@ -568,14 +569,14 @@ test.describe.serial("desktop default User Bar width", () => {
await bob.page.keyboard.press("Home")
await expect.poll(async () => (
(await sidebarPanel.boundingBox())?.width ?? 0
- )).toBeCloseTo(300, 0)
- await expectDesktopGeometry(bob.page, 300)
+ )).toBeCloseTo(100, 0)
+ await expectDesktopGeometry(bob.page, 100)
await bob.page.getByTestId(tid.inboxTrigger).click()
const extension = bob.page.getByTestId(tid.userBarExtension)
await expect(extension).toHaveAttribute("data-extension", "inbox")
await waitForElementMotion(extension)
- expect((await extension.boundingBox())!.width).toBeCloseTo(342, 0)
+ expect((await extension.boundingBox())!.width).toBeCloseTo(320, 0)
const evidence: Array<Record<string, unknown>> = []
for (const tab of ["Unreads", "Mentions", "Marked"] as const) {
@@ -636,10 +637,10 @@ test.describe.serial("desktop default User Bar width", () => {
await attachScreenshot(
bob.page,
testInfo,
- `inbox-300-${tabKey}-no-horizontal-overflow`,
+ `inbox-100-${tabKey}-no-horizontal-overflow`,
)
}
- await attachJson(testInfo, "inbox-300-no-horizontal-overflow", evidence)
+ await attachJson(testInfo, "inbox-100-no-horizontal-overflow", evidence)
} finally {
await seedCancelFriendRequest("carol", friendRequestId)
}
diff --git a/src/web/src/test/e2e-ui/_fixtures/community-loading-geometry.ts b/src/web/src/test/e2e-ui/_fixtures/community-loading-geometry.ts
index a6bd56889..79c65042f 100644
--- a/src/web/src/test/e2e-ui/_fixtures/community-loading-geometry.ts
+++ b/src/web/src/test/e2e-ui/_fixtures/community-loading-geometry.ts
@@ -34,7 +34,7 @@ type CommunityAsUser = (
) => Promise<{ context: BrowserContext; page: Page }>
type MobileWidth = 320 | 390 | 639
type DesktopWidth = 640 | 768 | 1024 | 1280
-type PersistedSidebarWidth = 160 | 240 | 350 | 360
+type PersistedSidebarWidth = 100 | 160 | 240 | 350 | 360
const RAIL_OVERFLOW_SERVER_COUNT = 20
const ISOLATED_GEOMETRY_USER: UserKey = "dave"
const DESKTOP_DENSITY_SCALES = [1, 1.25] as const
@@ -543,7 +543,7 @@ export async function runDesktopPersistedPendingGeometry(
asUser: CommunityAsUser,
) {
for (const viewportWidth of [640, 768, 1024, 1280] as const) {
- for (const sidebarWidth of [null, 160, 240, 350, 360] as const) {
+ for (const sidebarWidth of [null, 100, 160, 240, 350, 360] as const) {
for (const deviceScaleFactor of DESKTOP_DENSITY_SCALES) {
const caseLabel = `${viewportWidth}px @${deviceScaleFactor}x, sidebar ${sidebarWidth ?? "default"}`
const { context, page } = await asUser(ISOLATED_GEOMETRY_USER, {