ToolJet / ToolJet

Low-code platform for building business applications. Connect to databases, cloud storages, GraphQL, API endpoints, Airtable, Google sheets, OpenAI, etc and build apps using drag and drop application builder. Built using JavaScript/TypeScript. 🚀
https://tooljet.com
GNU Affero General Public License v3.0
26.77k stars 3.29k forks source link

`Styles Fit` property not working in table image column type #9509

Open GrowwithNaveen opened 2 weeks ago

GrowwithNaveen commented 2 weeks ago

Description: The current implementation of the "Styles Fit" property within image styles does not function as intended when applied to images within table columns.

Current Behavior: Currently, the "Styles Fit" property has no effect on images placed within table columns. The image displays at its original size, potentially overflowing the column width.

Expected Behavior: The "Styles Fit" property should allow for control over how an image resizes within a table column. This could include options like:

  1. Contain: Image scales down to fit entirely within the column, maintaining aspect ratio.
  2. Cover: Image fills the column entirely, potentially cropping parts of the image to maintain aspect ratio.
  3. Fill: Image stretches to fill the entire column, potentially distorting the aspect ratio.