Skip to content

Cross-reference hovercard renders an oversized figure, covering surrounding text #66

Description

@mmcky

Original reader report: QuantEcon/book-dp-public#29 (errata on the book-dp2 MyST online edition, built on the book-theme).

Symptom

Hovering a cross-reference link whose target contains a figure pops a hovercard/preview that renders the figure at full size. The oversized pop-up covers the surrounding text and makes the page hard to read while the cursor is near the link.

Reporter's description: "Hovering the mouse over a chapter link shows a figure from that chapter next to the cursor; the pop-up covers the surrounding text and makes it hard to read."

Suggested fix

Constrain the hovercard preview dimensions (a sensible max-height/max-width with internal scroll), or omit large media (figures/tables) from link previews and show only the caption/title.

Tier 3 (renderer/theme). Filing as an issue per the routing rule — the converted MyST is valid; this is a publisher rendering decision.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions