{"html_url": "https://github.com/simonw/datasette/issues/1540#issuecomment-984801331", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1540", "id": 984801331, "node_id": "IC_kwDOBm6k_c46suAz", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-12-02T16:42:02Z", "updated_at": "2021-12-09T23:38:39Z", "author_association": "OWNER", "body": "I'm going to wrap this up in a plugin for the moment - I want it in Datasette core but I'd like to improve the implementation first with things like support for `base_url` which will likely depend on #1533 or similar.\r\n\r\nHere's the plugin: https://github.com/simonw/datasette-hovercards", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1068791148, "label": "Idea: hover to reveal details of linked row"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1540#issuecomment-984053760", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1540", "id": 984053760, "node_id": "IC_kwDOBm6k_c46p3gA", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-12-01T21:05:20Z", "updated_at": "2021-12-01T21:05:20Z", "author_association": "OWNER", "body": "I realized you couldn't click the links any more because the hovercard overlapped them, so I changed it to this instead. Need to reconsider the when-to-hide logic though.\r\n\r\n```javascript\r\nhovercard.style.top = (ev.pageY + 15) + 'px';\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1068791148, "label": "Idea: hover to reveal details of linked row"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1540#issuecomment-984051925", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1540", "id": 984051925, "node_id": "IC_kwDOBm6k_c46p3DV", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-12-01T21:03:16Z", "updated_at": "2021-12-01T21:03:16Z", "author_association": "OWNER", "body": "Needs `pageX` not `clientX` because otherwise it doesn't work when you scroll down the page.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1068791148, "label": "Idea: hover to reveal details of linked row"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1540#issuecomment-984048965", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1540", "id": 984048965, "node_id": "IC_kwDOBm6k_c46p2VF", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-12-01T20:59:26Z", "updated_at": "2021-12-01T21:02:58Z", "author_association": "OWNER", "body": "This is a bit of a mess but it does keep the hovercard around for a moment and then fade it away when you mouse out of it:\r\n\r\n```html+jinja\r\n{% extends \"base.html\" %}\r\n\r\n{% block content %}\r\n\r\n

Hovercards demo

\r\n\r\nHere is a link to a row\r\n\r\n\r\n\r\n{% endblock %}\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1068791148, "label": "Idea: hover to reveal details of linked row"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1540#issuecomment-984037711", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1540", "id": 984037711, "node_id": "IC_kwDOBm6k_c46pzlP", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-12-01T20:42:17Z", "updated_at": "2021-12-01T20:43:14Z", "author_association": "OWNER", "body": "A first prototype (saved as `templates/pages/hovercard.html` and run with `datasette fixtures.db --template-dir=templates`):\r\n\r\n```html+jinja\r\n{% extends \"base.html\" %}\r\n\r\n{% block content %}\r\n\r\n

Hovercards demo

\r\n\r\nHere is a link to a row\r\n\r\n\r\n\r\n{% endblock %}\r\n```\r\n\r\n![hovercard](https://user-images.githubusercontent.com/9599/144310888-6db71bad-b6f6-4d8a-a737-81a618022bbe.gif)\r\n\r\nLots of decisions to make here. Most importantly, when should it be hidden again?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1068791148, "label": "Idea: hover to reveal details of linked row"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1540#issuecomment-983985330", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1540", "id": 983985330, "node_id": "IC_kwDOBm6k_c46pmyy", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-12-01T19:29:05Z", "updated_at": "2021-12-01T19:29:05Z", "author_association": "OWNER", "body": "The layout of the hover card could be similar to the one used by `datasette-cluster-map`:\r\n\r\n\"global-power-plants__global-power-plants__33_643_rows\"\r\n\r\n\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1068791148, "label": "Idea: hover to reveal details of linked row"}, "performed_via_github_app": null}