dsh-overleaf v0.3.2
dsh-overleaf v0.3.2
Fix: the embedded page never appeared (keep-alive iframe stayed hidden)
v0.3.1 created the keep-alive iframe inside a display:none parking container and then only mutated the FRAME's inline styles — the node itself remained inside the hidden parent, so the embedded page was invisible and the reload button had no effect (the open-in-new-window tab worked because it bypassed the frame).
Fixes
- The iframe attaches DIRECTLY to
<body>at creation; after that the node is never re-parented (DOM moves would reload it, defeating keep-alive). Show/hide is purely inline styles. - z-index raised 5 → 99999: the frame lives in the root stacking context and mid-range shell containers painted over it; it only ever covers the stage rectangle.
- A capture-phase scroll listener keeps the fixed geometry glued to the stage through any scrollable ancestor.
- Diagnostics:
<html data-dsh-frame="visible WxH@x,y">for field verification in Elements.
Upgrade
dsh plugin --profile web add github:gychen-NJU/dsh-overleaf(already installed? remove first, re-add, restart the web service, then hard-refresh with Ctrl+F5)