LibreChat/client/src/components/Chat/Messages/Content/Parts
Carolina 3a73907daa
📐 fix: Replace JS Image Scaling with CSS Viewport Constraints (#12089)
* fix: remove scaleImage function that stretched vertical images

* chore: lint

* refactor: Simplify Image Component Usage Across Chat Parts

- Removed height and width props from the Image component in various parts (Files, Part, ImageAttachment, LogContent) to streamline image rendering.
- Introduced a constant for maximum image height in the Image component for consistent styling.
- Updated related components to utilize the new simplified Image component structure, enhancing maintainability and reducing redundancy.

* refactor: Simplify LogContent and Enhance Image Component Tests

- Removed height and width properties from the ImageAttachment type in LogContent for cleaner code.
- Updated the image rendering logic to rely solely on the filepath, improving clarity.
- Enhanced the Image component tests with additional assertions for rendering behavior and accessibility.
- Introduced new tests for OpenAIImageGen to validate image preloading and progress handling, ensuring robust functionality.

---------

Co-authored-by: Danny Avila <danny@librechat.ai>
2026-03-06 16:42:23 -05:00
..
OpenAIImageGen 📐 fix: Replace JS Image Scaling with CSS Viewport Constraints (#12089) 2026-03-06 16:42:23 -05:00
AgentUpdate.tsx 🤖 feat: Agent Handoffs (Routing) (#10176) 2025-11-05 17:15:17 -05:00
Attachment.tsx 📐 fix: Replace JS Image Scaling with CSS Viewport Constraints (#12089) 2026-03-06 16:42:23 -05:00
EditTextPart.tsx ⏸ refactor: Improve UX for Parallel Streams (Multi-Convo) (#11096) 2025-12-25 01:43:54 -05:00
EmptyText.tsx 🔗 feat: Agent Chain (Mixture-of-Agents) (#6374) 2025-03-17 16:43:44 -04:00
ExecuteCode.tsx ⏲️ feat: Defer Loading MCP Tools (#11270) 2026-01-28 17:44:30 -05:00
index.ts 🖼️ feat: Tool Call and Loading UI Refresh, Image Resize Config (#7086) 2025-05-19 19:23:11 -04:00
LogContent.tsx 📐 fix: Replace JS Image Scaling with CSS Viewport Constraints (#12089) 2026-03-06 16:42:23 -05:00
LogLink.tsx 🗂️ feat: Better Persistence for Code Execution Files Between Sessions (#11362) 2026-01-28 17:44:32 -05:00
Reasoning.tsx a11y: Hide Collapsed Thinking Content From Screen Readers (#11927) 2026-02-24 20:59:56 -05:00
Stdout.tsx 🖼️ feat: Tool Call and Loading UI Refresh, Image Resize Config (#7086) 2025-05-19 19:23:11 -04:00
Text.tsx refactor: Optimize Message Re-renders (#12097) 2026-03-06 00:03:32 -05:00
Thinking.tsx a11y: Hide Collapsed Thinking Content From Screen Readers (#11927) 2026-02-24 20:59:56 -05:00