Skip to content

Feat/issue screenshot aspect ratio#1240

Closed
calebbrooksdev-ctrl wants to merge 2 commits into
entrius:testfrom
calebbrooksdev-ctrl:feat/issue-screenshot-aspect-ratio
Closed

Feat/issue screenshot aspect ratio#1240
calebbrooksdev-ctrl wants to merge 2 commits into
entrius:testfrom
calebbrooksdev-ctrl:feat/issue-screenshot-aspect-ratio

Conversation

@calebbrooksdev-ctrl
Copy link
Copy Markdown

@calebbrooksdev-ctrl calebbrooksdev-ctrl commented May 19, 2026

Summary

New Feature - Added a image lightbox for screenshot

Related Issues

Issue #1234

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Checklist

  • New components are modularized/separated where sensible
  • Uses predefined theme (e.g. no hardcoded colors)
  • Responsive/mobile checked
  • Tested against the test API
  • npm run format and npm run lint:fix have been run
  • npm run build passes
  • Screenshots included for any UI/visual changes

Screenshots

After Fix & Update

image image

@xiao-xiao-mao xiao-xiao-mao Bot added the enhancement New feature or request label May 19, 2026
@calebbrooksdev-ctrl
Copy link
Copy Markdown
Author

@anderdc Please check this PR.

Copy link
Copy Markdown
Collaborator

@anderdc anderdc left a comment

Choose a reason for hiding this comment

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

The real bug here is the aspect-ratio distortion; the lightbox is bundled scope that isn't needed.

Keep: the image-sizing fix in ConversationTimeline.tsx — width: auto / height: auto / object-fit: contain on the markdown img rule. That alone fixes #1234's reported bug; GitHub's attributes were forcing the distorted ratio.

Drop: ImageLightbox.tsx, MarkdownImage.tsx, the conversationMarkdownComponents img/a overrides in ConversationTimeline.tsx, and the two common/index.ts exports. A full-screen in-app modal duplicates just opening the screenshot — the lightbox's own "Open in new tab" button is the behavior we already have.

@calebbrooksdev-ctrl
Copy link
Copy Markdown
Author

It fixes #1234

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants