Closed Bug 2071267 Opened 2 months ago Closed 2 months ago

A diagram wider than the text column looks truncated rather than scrollable

Categories

(Developer Infrastructure :: Source Documentation, defect)

defect

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

Since bug 2071258 a mermaid diagram wider than the body column scrolls inside its own box. Firefox's overlay scrollbars stay invisible until the reader scrolls, so the diagram just ends at the column edge and reads as a rendering fault.

On ipc/docs/ipdl.md the first sequence diagram is 1289px wide in a 767px column, and its right-hand messages are cut mid-word with nothing on screen to suggest they can be reached.

An edge fade on the scroll container is the usual cue, and it has to apply only while the container overflows, or it fades a diagram that fits. The extension's fullscreen button sits beside the diagram and is visible, so leaning on that instead is the alternative.

ipc/docs/ipdl.md is the page to build and open. Its four diagrams run from 585 to 1289 pixels wide, so a window whose column width falls in that range shows both the fade on a diagram that scrolls and no fade on one that fits. The negative margin is what keeps the second case honest: a diagram scrolls at exactly the width it did before, since the padding the fade needs comes out of the column's gutter.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6c010dd12654 https://hg.mozilla.org/integration/autoland/rev/e72a760ea422 Fade out a mermaid diagram at the edge it scrolls past. r=sylvestre,firefox-source-docs-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: