Repository navigation
fix(blog): caption reflow fix + illustration-before-explanation reorder + attention example - #7
Merged
Merged
Conversation
The auto-advancing caption swapped text each frame; a 1-line caption becoming 2 lines grew the control bar and nudged the whole article up and down on every advance. Stack all captions in one grid cell (visibility-toggled) so the bar always reserves the tallest caption's height at any width, and move the aria-live announcement to a visually-hidden span. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…tention example
Every figure now leads into the prose that explains it, rather than trailing it, so readers see the animation first and then read the deliberation. Also adds a concrete coreference example to the attention section ('...because it's raining' -> 'it's' attends to 'raining', not 'cat').
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Move the it's/raining example between the K-Q dot-product step and the V-weighting step, and reword the V-weighting sentence for clarity. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #5. These commits were pushed to the
feat/llm-transformer-diagramsbranch after #5 was merged (which happened at8e74a36), so they never reachedmain. This PR gets them in.What's here
c80843f— caption reflow fix. The auto-advancing illustration caption changed line count between frames, growing the control bar and nudging the whole article up/down on every advance. Captions are now stacked in one grid cell so each figure reserves its tallest caption's height and never changes height while playing. (aria-live announcement preserved via a visually-hidden region.)bc4ee27— illustration-before-explanation reorder. All 13 figures now lead into the prose that explains them, instead of trailing it. Also adds a concrete coreference example to the attention section.b714fb6/6259d27— attention example polish. Simplify the "it's / raining" example and split the attention explanation around it (K-Q dot product → example → V-weighting).Impact
Without this, the live site still has the caption jitter, figures after their explanations, and no attention example. Files touched (
AnimRuntime.astro, the post.mdx) are disjoint from the comments/analytics merged in #6, so this merges cleanly.Verified with
npm run build; 13 figures render, no em/en-dashes.🤖 Generated with Claude Code