Page MenuHomePhabricator

Query example preview very hard to use
Closed, ResolvedPublic

Description

Query example dialog has "preview" on each item, which allows to see the query. However, it is hard to use due to the following issue: the box that is displayed is usually smaller than the query. The box displays scrollbars, but these scrollbars are impossible to use since one I move the mouse to scroll using one of the scrollbars, the whole box disappears.

I would propose doing one or both of the following:

  1. Make box linger a little when moving the mouse out, so I'd have time to get to the scroll bars (and of course not disappear if the cursor is inside the box)
  2. When I click on the eye icon, box stays there and is closed only if I click outside of the box or press Esc.

Event Timeline

Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript

Change 294042 had a related patch set uploaded (by Jonas Kress (WMDE)):
Fix: Query example preview very hard to use

https://gerrit.wikimedia.org/r/294042

Change 294042 merged by jenkins-bot:
Fix: Query example preview very hard to use

https://gerrit.wikimedia.org/r/294042

It's better now but I fear not completely perfect as most queries are not written to be seen in a much smaller box, so they look kind of broken in preview box, in a meaning that line wrapping is all wrong...

Change 294898 had a related patch set uploaded (by Jonas Kress (WMDE)):
Query examples preview formatting

https://gerrit.wikimedia.org/r/294898

Change 294898 merged by jenkins-bot:
Query examples preview formatting

https://gerrit.wikimedia.org/r/294898