a2ui-project / a2ui-project/a2ui

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

Ouverte Adaptée aux débutants
#1,297 1 commentaire 1 réaction 1 personne assignée Réclamée par @ditman Voir sur GitHub
component: react renderer P2 type: bug type: feature/enhancement
Langage dominant
TypeScript
Étoiles
16.4k
Forks
1.3k
Merge moyen
3 j 15 h
PR mergées (30 j)
134

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
react, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
Calme
Clarté
Clairement spécifiée
Accessibilité débutants
70/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.