Repository navigation
fix(docs): hide a framed demo's preview in the code view - #439
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes Reviewed Example.vue’s CSS visibility fix, including the template hierarchy and shared example view state.
- Framed previews: Restricts the self-framing layout rule to Preview mode so it no longer overrides Code-mode hiding, including for HTML-rendered blocks.
- Media previews: Applies the same Preview-only restriction to paragraph-wrapped audio and video, without changing the layout declarations.
Validation: Vue component parsing and stylesheet compilation passed, as did focused Chromium checks across 10 preview shapes. Preview layouts stayed unchanged, Code mode hid the previews and displayed the source, and switching back restored the previews. A full docs build was not run.
gpt-6.1-sol(xhigh) | 𝕏
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
Latest result Pull request merged. Final answersSession Pull request merged. |

On the git-graph page, pressing Code above a demo left the graph on screen. The same happened on
/diffand on any demo made only of framed blocks.The rule from #384 that drops the ring around framed previews sets
display: flexwith the same specificity as the rule that hides the preview, and comes later. This applies it only in the preview view.Before/after