@rogieking/figui3 6.31.2 → 6.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1308,6 +1308,7 @@ A thin styled layer for arbitrary visual content. Use it for generated previews,
1308
1308
 
1309
1309
  | Attribute | Type | Default | Description |
1310
1310
  |---|---|---|---|
1311
+ | `aspect-ratio` | string | `auto` | CSS aspect ratio such as `"1/1"` or `"16/9"` |
1311
1312
  | `fit` | string | `contain` | Object fit for direct media children |
1312
1313
  | `full` | boolean | `false` | Stretch to the available width |
1313
1314
  | `checkerboard` | boolean | `false` | Show checkerboard behind transparent content |
package/components.css CHANGED
@@ -3175,8 +3175,10 @@ fig-tooltip {
3175
3175
  fig-preview {
3176
3176
  --fig-preview-fit: contain;
3177
3177
  --fig-preview-background: var(--figma-color-bg-secondary);
3178
+ --fig-preview-aspect-ratio: auto;
3178
3179
 
3179
3180
  display: block;
3181
+ aspect-ratio: var(--fig-preview-aspect-ratio);
3180
3182
  place-items: center;
3181
3183
  min-width: 0;
3182
3184
  max-width: 100%;