Commit 764b840
fix(connect): stop cropping agent intro artwork
The intro slides used a fixed height + objectFit:cover, so when the box was
narrower than the image's aspect ratio (e.g. the 460px About Agent modal) the
sides were cropped — clipping the edge labels like "Your AI agent".
Scale to the container width at the image's natural aspect ratio (height:auto)
so the whole artwork always shows; imageHeight now caps the height on wide
containers and only letterboxes if that cap engages.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 57445fb commit 764b840
1 file changed
Lines changed: 9 additions & 5 deletions
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | | - | |
54 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
0 commit comments