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 projects: Wikidata, Discovery. · View Herald TranscriptJun 10 2016, 7:17 PM
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

Change 294158 had a related patch set uploaded (by Smalyshev):
Merging from b62cdc8f72314b9b9a658cccd140b22c4db7aa31:

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

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

Change 295025 had a related patch set uploaded (by Smalyshev):
Merging from 3869bcce07a199a781623fd995732c9919a516a0:

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

Jonas closed this task as Resolved.Jun 18 2016, 8:32 AM
Jonas moved this task from Proposed to Done on the Wikidata-Sprint-2016-05-24 board.