mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-05 21:54:50 +00:00
fix: image compare node displays wrong height with mismatched resolut… (#10714)
## Summary Revert `object-cover` to `object-contain` so images are never cropped when the container is short, and add imagecompare to `EXPANDING_TYPES` so the widget row grows to fill the full node body instead of collapsing to `min-content`. ## Screenshots before <img width="2674" height="2390" alt="image" src="https://github.com/user-attachments/assets/8fa5cf41-f393-4a7d-a767-75ce944d00d4" /> after https://github.com/user-attachments/assets/46e1fffc-5f65-4b69-9303-fe6255d9de79 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-10714-fix-image-compare-node-displays-wrong-height-with-mismatched-resolut-3326d73d3650818293d3c716cb8fafb5) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -58,7 +58,7 @@ describe('WidgetImageCompare Display', () => {
|
||||
expect(images[1].attributes('src')).toBe('https://example.com/before.jpg')
|
||||
|
||||
images.forEach((img) => {
|
||||
expect(img.classes()).toContain('object-cover')
|
||||
expect(img.classes()).toContain('object-contain')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user