diff --git a/resources/views/docs/mobile/4/edge-components/bottom-sheet.md b/resources/views/docs/mobile/4/edge-components/bottom-sheet.md index c8e9f19a..2a192834 100644 --- a/resources/views/docs/mobile/4/edge-components/bottom-sheet.md +++ b/resources/views/docs/mobile/4/edge-components/bottom-sheet.md @@ -130,7 +130,7 @@ Accepts any EDGE elements as children. The children are rendered inside the shee - + ``` diff --git a/resources/views/docs/mobile/4/edge-components/carousel.md b/resources/views/docs/mobile/4/edge-components/carousel.md index 32e93413..413af78e 100644 --- a/resources/views/docs/mobile/4/edge-components/carousel.md +++ b/resources/views/docs/mobile/4/edge-components/carousel.md @@ -70,7 +70,7 @@ wrapping a [``](row). {{ $contact->initials }} - + {{ $contact->name }} diff --git a/resources/views/docs/mobile/4/edge-components/image.md b/resources/views/docs/mobile/4/edge-components/image.md index 86271d97..bd9a354b 100644 --- a/resources/views/docs/mobile/4/edge-components/image.md +++ b/resources/views/docs/mobile/4/edge-components/image.md @@ -13,7 +13,7 @@ Displays an image from a URL. Loaded asynchronously by the native platform — ` src="https://picsum.photos/seed/nativephp/400/300" :width="200" :height="150" - :fit="2" + fit="cover" class="rounded-xl" /> ``` @@ -24,17 +24,25 @@ Displays an image from a URL. Loaded asynchronously by the native platform — ` All [shared layout and style attributes](layout) are supported, plus: - `src` - Image URL (required, string) -- `fit` - Content fit mode (optional, int, default: `1`): - - `0` / `1` — fit (scale to fit within bounds, preserving aspect ratio) - - `2` / `3` — fill (scale to fill bounds, cropping excess) +- `fit` - How the image fills its frame, following CSS `object-fit`. + Takes `none`, `contain`, `cover` or `fill`, an `ImageFit` case, or the integer `0`/`1`/`2`/`3` (optional, + default: `contain`): + - `none` (`0`) - Draws the image at its own size, one image pixel per point on iOS or per dp on Android, + centered and cropped to the frame + - `contain` (`1`) - Scales the image to fit inside the frame, keeping its aspect ratio, and centers it + - `cover` (`2`) - Scales the image to fill the frame, keeping its aspect ratio, centered and cropped + - `fill` (`3`) - Stretches the image to the frame's exact width and height, ignoring its aspect ratio - `tint-color` - Apply a color tint as hex string (optional) - `alt` - Accessibility alt text (optional). When set, screen readers announce the image with this label; when omitted, the image is treated as decorative and hidden from VoiceOver/TalkBack. See [Accessibility](../digging-deeper/accessibility)