LuteOrg / lute-v3

LUTE = Learning Using Texts: learn languages through reading.
https://luteorg.github.io/lute-manual/
MIT License
482 stars 46 forks source link

Show more detail in hover popup (children, siblings, ...) with options for level of detail #236

Open jzohrab opened 9 months ago

jzohrab commented 9 months ago

With some languages and users, it would be nice to see more detail in the hover. e.g. Modern Greek has tricky verb forms, and being reminded of these on hover could be helpful.

Current information shown in popup:

Requested info: parents, children, sibling terms, perhaps just with some non-cluttered styling and info like translation; or even just a list of children/siblings would be good, b/c their data can be derived from the parent. If a term has multiple parents, the children could be listed under the parent term.

There's a lot of info possible, and could be overwhelming/crowded. Alternatives:

GyckaZ commented 9 months ago

Additional idea closely related to this one: to be able to click on any of parents and sibling terms within the frame and being directed to that word with its translation, parent terms and sibling terms within the same frame (if it was possible to navigate back, it would be perfect). If not possible within the same frame, then in additional frame - this assuming that the inactive frame (without mouse pointer on it) would be automatically closed after x ms (configured in settings for example).

jzohrab commented 9 months ago

Right, I think I'd need someone to investigate js popup libraries to see what's possible. 👍

jzohrab commented 7 months ago

Related: https://github.com/jzohrab/lute-v3/issues/341

jzohrab commented 7 months ago

https://tippyjs.bootcss.com/ looks good, I think @webofpies did some hacking with this earlier.

webofpies commented 7 months ago

my work is on this branch if anyone wants to continue to work on it: https://github.com/webofpies/lute-v3/tree/tippyjs tippy also supports popup inside popup if needed for parent terms

p.s: fyi, on that branch i have also replaced term form flash message with tippy popup (checking if term string has been changed before submit)

jzohrab commented 7 months ago

Thanks @webofpies 👍 - it feels like this is the right thing to do, do you agree? -- created issue https://github.com/jzohrab/lute-v3/issues/360 to investigate.

webofpies commented 7 months ago

yep. i think it's more future proof with much more cool features