🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style(acceptance): keep the checklist at its reading width (#22051)
Arvin Xu1b5218c178a5
diff --git a/src/features/Acceptance/Viewer/AcceptanceOverview.tsx b/src/features/Acceptance/Viewer/AcceptanceOverview.tsxindex c05ad8a47a2..6be04993b3b 100644--- a/src/features/Acceptance/Viewer/AcceptanceOverview.tsx+++ b/src/features/Acceptance/Viewer/AcceptanceOverview.tsx@@ -26,7 +26,7 @@ import AcceptanceShare from './Header/AcceptanceShare';import AcceptanceStatusControl from './Header/AcceptanceStatusControl';import type { AcceptanceTabKey } from './Header/AcceptanceTabs';import AcceptanceTabs from './Header/AcceptanceTabs';-import { acceptanceContentLayout } from './layout';+import { acceptanceChecksLayout, acceptanceContentLayout } from './layout';import { flowPlanPhase } from './Plan/planReview';import AcceptanceDecision from './Review/AcceptanceDecision';import { AcceptanceRepair } from './Review/AcceptanceRepair';@@ -45,6 +45,10 @@ const styles = createStaticStyles(({ css }) => ({padding-inline: 16px;}`,+ checks: css`+ width: 100%;+ max-width: ${acceptanceChecksLayout.maxWidth}px;+ `,headerBand: css`flex: none;padding-block: 20px 0;@@ -158,11 +162,11 @@ export const AcceptanceOverview = ({) : tab === 'checks' && gateDossier ? (<GateReview dossier={gateDossier} />) : tab === 'checks' ? (- <>+ <Flexbox className={styles.checks} gap={16}><AcceptanceCheckInventory toolbar={<AcceptanceCheckOwnerToolbar />} /><ReviewerApprovalBar /><AcceptanceDecision onDraftToComposer={onDraftToComposer} />- </>+ </Flexbox>) : (<AcceptanceResources />)}diff --git a/src/features/Acceptance/Viewer/layout.test.ts b/src/features/Acceptance/Viewer/layout.test.tsindex d5a92ba8c28..4d49ddc61e6 100644--- a/src/features/Acceptance/Viewer/layout.test.ts+++ b/src/features/Acceptance/Viewer/layout.test.ts@@ -1,6 +1,18 @@import { describe, expect, it } from 'vitest';-import { acceptanceFocusedLayout, acceptanceScrollLayout } from './layout';+import {+ acceptanceChecksLayout,+ acceptanceContentLayout,+ acceptanceFocusedLayout,+ acceptanceScrollLayout,+} from './layout';++describe('acceptanceChecksLayout', () => {+ it('keeps the checklist narrower than the discussion frame', () => {+ expect(acceptanceChecksLayout.maxWidth).toBe(920);+ expect(acceptanceChecksLayout.maxWidth).toBeLessThan(acceptanceContentLayout.maxWidth);+ });+});describe('acceptanceFocusedLayout', () => {it('keeps deliberate reading space above and below focused check content', () => {diff --git a/src/features/Acceptance/Viewer/layout.ts b/src/features/Acceptance/Viewer/layout.tsindex a372d979ccc..a34b06207eb 100644--- a/src/features/Acceptance/Viewer/layout.ts+++ b/src/features/Acceptance/Viewer/layout.ts@@ -5,6 +5,12 @@ export const acceptanceContentLayout = {paddingInline: 24,} as const;+/** The checklist reads as one column of evidence, not a feed with an aside —+ * it keeps the narrower reading width inside the page's wide frame. */+export const acceptanceChecksLayout = {+ maxWidth: 920,+} as const;+export const acceptanceFocusedLayout = {contentPaddingBlock: '32px 24px',headerGap: 8,