Skip to content

Citations: selecting a prompt widens the Prompt dropdown and overlaps the Platform filter #84

Closed

Description

@gkhngyk

What

On the Citations page (/dashboard/citations), selecting a prompt from the Prompt dropdown makes that control grow sideways and overlap the adjacent Platform filter.

Steps to reproduce

  1. Open /dashboard/citations
  2. Open the Prompt dropdown and select a prompt (especially a long one)
  3. The Prompt control widens to fit the selected text and overflows on top of the Platform select next to it

Expected

The Prompt control stays at its fixed width; a long selected prompt is truncated with an ellipsis. No overlap with the Platform filter at any prompt length or viewport width.

Where / root cause

The Prompt filter uses the shared Combobox in the FilterBar of citations/page.tsx — <ComboboxTrigger className="h-8 w-56 ..."> wrapping <ComboboxValue />.

The shared combobox.tsx ComboboxTrigger is styled flex w-fit ... whitespace-nowrap with no truncation. w-fit sizes the trigger to its content, so a long selected value grows the trigger past the intended w-56, and the whitespace-nowrap text overflows onto the neighbouring control. The sibling Topic and Platform filters use SelectTrigger (fixed width + truncation), which is why they don't show this issue.

Suggested fix

Make ComboboxTrigger respect its given width and truncate the value, mirroring SelectTrigger:

  • don't let the base w-fit override a passed width (or drop w-fit from the base trigger), and
  • add min-w-0 + truncate (or overflow-hidden) so the value clips with an ellipsis instead of expanding/overflowing the control.

Acceptance criteria

  • Selecting any prompt (including long ones) keeps the Prompt control at its set width
  • The selected prompt text truncates with an ellipsis
  • No overlap with the Platform filter at any prompt length / viewport width
  • Other Combobox usages still render correctly after the shared-component change

Activity

  1. added
    bug
    good first issue
    help wanted
    on May 23, 2026
  2. barton87 commented on May 23, 2026

    @barton87

    I can take this as a focused fixed-price PR if useful: $150, pay-on-merge/acceptance.

    I ran a quick repo preflight first and this looks straightforward to prove: clear reproduction path on /dashboard/citations, and a narrow UI fix around the Combobox trigger/value width/overflow behavior.

    Plan:

    1. keep the Prompt filter width fixed,
    2. ensure selected value truncates with ellipsis,
    3. prevent overlap with Platform filter across narrow viewports,
    4. include before/after screenshots + relevant test/build output in the PR.

    If that works for you, I’ll open the PR and keep it small.

  3. gkhngyk commented on May 23, 2026

    @gkhngyk
    ContributorAuthor

    Thanks for the interest, @barton87 — but to be direct: we don't do paid or for-hire arrangements on this tracker. Ansvisor is open source, so contributions are community PRs on a volunteer basis, reviewed on their merits.

    I'm unassigning this so it stays open to anyone who'd like to pick it up on that basis. Appreciate the offer, but please don't post paid solicitations on the issues here.

  4. added a commit that references this issue on Sep 17, 2026
    cfc0c43
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

    buggood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions