Skip to content

fix(docs): hide a framed demo's preview in the code view - #439

Merged
vite-hub[bot] merged 1 commit into
mainfrom
fix/docs-code-view-framed
Nov 16, 2026
Merged

vite-hub[bot] merged 1 commit into
mainfrom
fix/docs-code-view-framed

Conversation

@onmax

@onmax onmax commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

On the git-graph page, pressing Code above a demo left the graph on screen. The same happened on /diff and on any demo made only of framed blocks.

The rule from #384 that drops the ring around framed previews sets display: flex with the same specificity as the rule that hides the preview, and comes later. This applies it only in the preview view.

Before/after

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T14:38:24.911270Z
We couldn’t complete this review. Comment @codex review to try again.
d667777 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

Pullfrog  | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

@pkg-pr-new

pkg-pr-new Bot commented Nov 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@439

comark-badge

pnpm add https://pkg.pr.new/comark-badge@439

comark-bundle

pnpm add https://pkg.pr.new/comark-bundle@439

comark-cards

pnpm add https://pkg.pr.new/comark-cards@439

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@439

comark-cast

pnpm add https://pkg.pr.new/comark-cast@439

comark-charts

pnpm add https://pkg.pr.new/comark-charts@439

comark-chat

pnpm add https://pkg.pr.new/comark-chat@439

comark-chips

pnpm add https://pkg.pr.new/comark-chips@439

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@439

comark-code

pnpm add https://pkg.pr.new/comark-code@439

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@439

comark-colors

pnpm add https://pkg.pr.new/comark-colors@439

comark-comments

pnpm add https://pkg.pr.new/comark-comments@439

comark-critic

pnpm add https://pkg.pr.new/comark-critic@439

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@439

comark-details

pnpm add https://pkg.pr.new/comark-details@439

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@439

comark-diff

pnpm add https://pkg.pr.new/comark-diff@439

comark-embed

pnpm add https://pkg.pr.new/comark-embed@439

comark-fields

pnpm add https://pkg.pr.new/comark-fields@439

comark-figure

pnpm add https://pkg.pr.new/comark-figure@439

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@439

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@439

comark-git-graph

pnpm add https://pkg.pr.new/comark-git-graph@439

comark-github

pnpm add https://pkg.pr.new/comark-github@439

comark-icon

pnpm add https://pkg.pr.new/comark-icon@439

comark-include

pnpm add https://pkg.pr.new/comark-include@439

comark-keys

pnpm add https://pkg.pr.new/comark-keys@439

comark-links

pnpm add https://pkg.pr.new/comark-links@439

comark-linter

pnpm add https://pkg.pr.new/comark-linter@439

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@439

comark-mark

pnpm add https://pkg.pr.new/comark-mark@439

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@439

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@439

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@439

comark-media

pnpm add https://pkg.pr.new/comark-media@439

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@439

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@439

comark-outline

pnpm add https://pkg.pr.new/comark-outline@439

comark-properties

pnpm add https://pkg.pr.new/comark-properties@439

comark-qr

pnpm add https://pkg.pr.new/comark-qr@439

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@439

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@439

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@439

comark-sources

pnpm add https://pkg.pr.new/comark-sources@439

comark-steps

pnpm add https://pkg.pr.new/comark-steps@439

comark-table

pnpm add https://pkg.pr.new/comark-table@439

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@439

comark-tests

pnpm add https://pkg.pr.new/comark-tests@439

comark-time

pnpm add https://pkg.pr.new/comark-time@439

comark-ui

pnpm add https://pkg.pr.new/comark-ui@439

comark-xref

pnpm add https://pkg.pr.new/comark-xref@439

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@439

commit: d667777

@vite-hub
vite-hub Bot merged commit 500d6b4 into main Nov 16, 2026
6 checks passed
@vite-hub
vite-hub Bot deleted the fix/docs-code-view-framed branch November 16, 2026 16:00
@github-actions github-actions Bot mentioned this pull request Nov 16, 2026
@vite-hub

vite-hub Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant