Let a call tile fill the slot it was given
The layout was sizing the tiles correctly and the pictures were ignoring it: a stream narrower than its slot sat at its own width in the middle of one, so dragging the window wider moved nothing. A tile is a slot, not a picture at whatever size the camera chose. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ddebf2a parent: 16df4e0 modified
src/frq/app.jolt +5 -0 | @@ -533,7 +533,12 @@ | ||
| 533 | 533 | [width key] |
| 534 | 534 | (let [mine? (= av/local-feed key)] |
| 535 | 535 | [:vbox {:key key :spacing 2} |
| 536 | + ;; `:upscale` because a tile is a slot the layout sized, not a picture | |
| 537 | + ;; sitting at whatever the camera happened to send. Without it a 480-wide | |
| 538 | + ;; stream draws 480 wide in a 900-point slot and the wall looks broken — | |
| 539 | + ;; which is exactly what it did. | |
| 536 | 540 | [:image {:feed key |
| 541 | + :upscale true | |
| 537 | 542 | :max-width width |
| 538 | 543 | :max-height (long (* width 0.75))}] |
| 539 | 544 | [:dim-label {:label (if mine? "You" key)}]])) |
| @@ -533,7 +533,12 @@ | |||
| 533 | [width key] | 533 | [width key] |
| 534 | (let [mine? (= av/local-feed key)] | 534 | (let [mine? (= av/local-feed key)] |
| 535 | [:vbox {:key key :spacing 2} | 535 | [:vbox {:key key :spacing 2} |
| 536 | + ;; `:upscale` because a tile is a slot the layout sized, not a picture | ||
| 537 | + ;; sitting at whatever the camera happened to send. Without it a 480-wide | ||
| 538 | + ;; stream draws 480 wide in a 900-point slot and the wall looks broken — | ||
| 539 | + ;; which is exactly what it did. | ||
| 536 | [:image {:feed key | 540 | [:image {:feed key |
| 541 | + :upscale true | ||
| 537 | :max-width width | 542 | :max-width width |
| 538 | :max-height (long (* width 0.75))}] | 543 | :max-height (long (* width 0.75))}] |
| 539 | [:dim-label {:label (if mine? "You" key)}]])) | 544 | [:dim-label {:label (if mine? "You" key)}]])) |