Skip to content

Allow Console to constrain image size in comment content - #259

Merged
ruibaby merged 1 commit into
mainfrom
fix/console-content-image-size
Oct 14, 2026
Merged

ruibaby merged 1 commit into
mainfrom
fix/console-content-image-size

Conversation

@ruibaby

@ruibaby ruibaby commented Oct 13, 2026

Copy link
Copy Markdown
Member

What this PR does

  1. .content img now uses max-width: var(--halo-cw-content-img-max-width, 100%) with height: auto, so images resized (stretched) in the comment editor keep their aspect ratio, and the image width can be capped from outside through a CSS custom property, which inherits across the shadow boundary.
  2. The Console content provider (Content.vue) sets --halo-cw-content-img-max-width: 50%, so images in Console comment management render at most half of the content width. Theme-side rendering is unchanged (defaults to 100%).

References halo-dev/halo#10378. Companion to halo-dev/halo#10379.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T07:45:01.572758Z a6d67b6 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.

@ruibaby
ruibaby merged commit f9df4ce into main Oct 14, 2026
2 checks passed
@ruibaby
ruibaby deleted the fix/console-content-image-size branch October 14, 2026 03:06
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