Skip to content

fix(ui): Input cannot shrink in a Row, overflowing siblings out of bounds #445

Closed

Description

@thinkclay

Split from #440. Reported symptom: everything to the right of the search input on /communities/connections overflows into the next column on desktop and out of bounds on mobile.

Cause

packages/ui/src/components/Input/Input.styles.ts sets both minWidth: '100%' and flexShrink: 0 on the input root:

const baseContainer: ViewStyle = {
  width: '100%',
  minWidth: '100%',
  maxWidth: '100%',
  flexDirection: 'column',
  gap: spacing[4],
  flexShrink: 0,
}

So in ConnectionsList.tsx:118 the caller's style={{ flex: 1 }} is powerless — the input claims the full row width and refuses to shrink, shoving the "Export CSV" button past the right edge.

Scope

13 call sites in scf-core/features pass flex: 1 to an Input, i.e. every author who expected it to share a row. Notably:

  • connections/components/ConnectionsList.tsx (reported)
  • office/components/OfficePageHeader.tsx — every office page header
  • career-assessment/components/OccupationSearch.tsx
  • inquiries/components/InquiryCreateForm.tsx (3×)
  • profile/components/VanityUrlSection.tsx, resume/components/ResumeWizard.tsx, and others

Fix

Let the container shrink and stop forcing minWidth: 100%, without regressing the common full-width-in-a-column case.

Acceptance

  • Input + sibling button in a Row stays within bounds, desktop and mobile
  • Input still fills width when it is the only child of a column
  • No regression at the other 12 call sites

Lives in the packages/ui submodule — needs its own PR plus a pointer bump in UNI-Construct.

Activity

  1. added
    bug
    on Jul 30, 2026
  2. thinkclay commented on Jul 30, 2026

    @thinkclay
    ContributorAuthor

    Fixed by Scaffald/ui#16 and #466 (both merged). minWidth: '100%' dropped and shrink enabled, so a caller's flex: 1 works and the column case is unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtype: frontend

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions