Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Python notebooks: fix anchor offset#62637

Merged
camdencheek merged 1 commit into
mainfrom
cc/fix-anchor-offset
May 13, 2024
Merged

Python notebooks: fix anchor offset#62637
camdencheek merged 1 commit into
mainfrom
cc/fix-anchor-offset

Conversation

@camdencheek

@camdencheek camdencheek commented May 13, 2024

Copy link
Copy Markdown
Member

This fixes an issue with Jupyter notebook rendering where the offset from the anchor can clip the left side of the header text. The issue is that we use margin-left: 1rem; to offset the anchor, but the anchor isn't guaranteed to be exactly 1rem wide. This makes the relationship explicit and adds a comment that those are linked.

screenshot-2024-05-13_13-17-06@2x

Test plan

Manually tested both rendered markdown and rendered notebooks in both the react and svelte webapp. No more clipping.
screenshot-2024-05-13_13-21-46@2x

@cla-bot cla-bot Bot added the cla-signed label May 13, 2024
@camdencheek camdencheek requested a review from a team May 13, 2024 17:22
@camdencheek camdencheek enabled auto-merge (squash) May 13, 2024 17:24
@camdencheek camdencheek merged commit 63680e8 into main May 13, 2024
@camdencheek camdencheek deleted the cc/fix-anchor-offset branch May 13, 2024 17:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants