[GH-ISSUE #5742] [Feature]: Make Professor Mari's suggestion chips scrollable by mouse with a visible overflow affordance #3172

Closed
opened 2026-10-21 06:00:13 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kolacheee on GitHub (Sep 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5742

Originally assigned to: @kolacheee on GitHub.

Summary

Professor Mari's suggestion chips get cut off at the right edge on narrow widths, with no visible way to reach the hidden ones — and on desktop (a resized window, not a touch device), attempting to click-and-drag the row does nothing, so it is unclear whether the row scrolls at all.

The problem

The chip row (MariSuggestionChips, styled by .mari-suggestion-chips in packages/client/src/styles/globals.css:983) is a flex row with overflow-x: auto. On touch devices that scrolls with a swipe, but:

  • there is no affordance — no scrollbar, fade, or arrow — so a cut-off chip just looks broken;
  • mouse users cannot drag it: pointer drag on a scrollable flex row does nothing in browsers, and a desktop user in a narrow window (exactly how this was found) has no way in;
  • the reporter genuinely could not tell whether the hidden chips were reachable, which is the affordance problem stated as a user experience.

Proposed feature

Make the chip row's reachability obvious and universal:

  • Pointer drag-to-scroll on the chip container (pointerdown + move translates to scrollLeft; threshold so plain clicks still select a chip), so mouse users get the same gesture touch users have.
  • A visible affordance when content overflows: an edge fade and/or small scroll arrows shown only while more chips exist off-screen (scrollWidth > clientWidth), so a cut-off chip reads as "scrollable", not "clipped".
  • Alternative worth considering instead: allow the row to wrap to a second line on narrow widths (the base class already declares flex-wrap: wrap — worth checking why the narrow layout ends up as one clipped row, see the --compact variant at :1045 and the media query at :1056), which may be the simpler fix if two rows are acceptable above the composer.

How to see it

Open Professor Mari with 4+ suggestion chips (e.g. the welcome state), narrow the window to ~450px, and look at the chip row: the last chip is clipped mid-way and click-dragging the row does nothing.


Filed from maintainer feedback (desktop window resized to emulate mobile; screenshot available). Related component: packages/client/src/components/chat/MariSuggestionChips.tsx.

Originally created by @kolacheee on GitHub (Sep 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5742 Originally assigned to: @kolacheee on GitHub. ## Summary Professor Mari's suggestion chips get **cut off at the right edge on narrow widths, with no visible way to reach the hidden ones** — and on desktop (a resized window, not a touch device), attempting to click-and-drag the row does nothing, so it is unclear whether the row scrolls at all. ## The problem The chip row (`MariSuggestionChips`, styled by `.mari-suggestion-chips` in `packages/client/src/styles/globals.css:983`) is a flex row with `overflow-x: auto`. On touch devices that scrolls with a swipe, but: - there is **no affordance** — no scrollbar, fade, or arrow — so a cut-off chip just looks broken; - **mouse users cannot drag it**: pointer drag on a scrollable flex row does nothing in browsers, and a desktop user in a narrow window (exactly how this was found) has no way in; - the reporter genuinely could not tell whether the hidden chips were reachable, which is the affordance problem stated as a user experience. ## Proposed feature Make the chip row's reachability obvious and universal: - **Pointer drag-to-scroll** on the chip container (pointerdown + move translates to scrollLeft; threshold so plain clicks still select a chip), so mouse users get the same gesture touch users have. - **A visible affordance when content overflows**: an edge fade and/or small scroll arrows shown only while more chips exist off-screen (scrollWidth > clientWidth), so a cut-off chip reads as "scrollable", not "clipped". - Alternative worth considering instead: allow the row to **wrap to a second line on narrow widths** (the base class already declares `flex-wrap: wrap` — worth checking why the narrow layout ends up as one clipped row, see the `--compact` variant at `:1045` and the media query at `:1056`), which may be the simpler fix if two rows are acceptable above the composer. ## How to see it Open Professor Mari with 4+ suggestion chips (e.g. the welcome state), narrow the window to ~450px, and look at the chip row: the last chip is clipped mid-way and click-dragging the row does nothing. --- *Filed from maintainer feedback (desktop window resized to emulate mobile; screenshot available). Related component: `packages/client/src/components/chat/MariSuggestionChips.tsx`.*
Author
Owner

@kolacheee commented on GitHub (Sep 2, 2026):

Implementation starting (kolacheee, via Claude session) - joining the combined Mari polish PR on branch fix/5752-5754-mari-polish.

<!-- gh-comment-id:5504082707 --> @kolacheee commented on GitHub (Sep 2, 2026): Implementation starting (kolacheee, via Claude session) - joining the combined Mari polish PR on branch fix/5752-5754-mari-polish.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3172
No description provided.