expressjs.com icon indicating copy to clipboard operation
expressjs.com copied to clipboard

Display of citations in AI question responses is broken

Open ExplodingCabbage opened this issue 5 months ago • 3 comments

See how the third link here is cropped on the right, and there's no way to scroll right to see if there are additional citations:

Image

ExplodingCabbage avatar Jun 22 '26 11:06 ExplodingCabbage

.chat-sources contains overflow-x: scroll, which should enable scrolling, and scrollbar-width: none, which removes any indicator that it can be scrolled and prevents scrolling[^1]:

https://github.com/expressjs/expressjs.com/blob/a1db65227db148432ec57e642d68ef2ed36f5f62/src/components/patterns/Searchbox/ChatSources.css#L32-L35

[^1]: It can be scrolled with a touchscreen, Shift+scroll, auto scroll (press the scroll wheel; cursor must be placed between cards, because on links MMB usually is a shortcut for opening in a new tab), arrow keys (when the list or one of its items is focused) and probably horizontal scroll wheel (I don't have one).

When the list is scrolled to the end there is no indication that it really is the end - the gradient on right remains. For consistency a similar thing should appear on the left side as it leaves the visible area.

krzysdz avatar Jun 22 '26 21:06 krzysdz

Expected to pass a11y criteria https://www.w3.org/WAI/WCAG22/Understanding/visual-presentation

ShubhamOulkar avatar Jul 22 '26 05:07 ShubhamOulkar

is this is open for contribution? i would like to work on it

aditya4oo4 avatar Sep 02 '26 07:09 aditya4oo4