a2ui-project / a2ui-project/a2ui

React (v0.9) basic catalog `Image` distorts when placed in a flex `Row`

オープン 初心者向け
#1,297 コメント 1 件 リアクション 1 件 担当者 1 名 @ditman が担当を希望しています GitHub で見る
component: react renderer P2 type: bug type: feature/enhancement
主要言語
TypeScript
スター
16.4k
フォーク
1.3k
平均マージ
3日 15時間
マージ済み PR(30日)
134

説明

Running the react shell with restaurant finder, the images rendered inside card layouts appear visibly stretched/squished--pixels are scaled non-uniformly to match the row's height.

## Repro steps

1. Run the restaurant-finder agent (`samples/agent/adk/restaurant_finder`).
2. Run the React shell (`samples/client/react/shell`).
3. Open the app at `http://localhost:5003/` and submit any prompt (or use `?mock=true` to skip the agent call).
4. Observe the restaurant photos in the result cards.

Image

## Root cause

The basic catalog's `Row` defaults to `align-items: stretch`, so any flex child gets stretched to the row's height. The React `Image` renders a bare `` whose default `objectFit` is `'fill'`, causing the image to scale non-uniformly along the stretched axis.

Related: https://github.com/google/A2UI/issues/1298

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Look at the basic catalog's `Row` component and its default `align-items: stretch` style. The React `Image` component renders an `` with default `objectFit: 'fill'`. The fix likely involves adjusting the `Image` component's style or the `Row`'s alignment for these images. Start by running the restaurant-finder agent and React shell to reproduce the issue, then modify the relevant component files in the samples/client/react directory.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react, typescript
領域
frontend
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
静か
明瞭さ
明確に書かれている
初心者へのやさしさ
70/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。