Skip to content

Commit ed73936

Browse files
committed
docs: Update attachment sizing guide
1 parent 35dba67 commit ed73936

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docusaurus/docs/Angular/components/AttachmentListComponent.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ Based on the CSS settings provided for images and videos, the SDK will load an i
6161

6262
#### Aspect ratio
6363

64-
The SDK will try to display images and videos with their original aspect ratio, however this isn't always guaranteed. Three notable exceptions are:
64+
The following description is applicable for [theme-v2](../theming/introduction.mdx).
65+
66+
The SDK will try to display images and videos with their original aspect ratio, however this isn't always guaranteed (in those cases a cropped image will be displayed). Three notable exceptions are:
6567

6668
1. if a message contains multiple lines of texts and/or multiple attachments, the image/video might be stretched to its `max-width`
6769

@@ -88,7 +90,7 @@ The SDK will try to display images and videos with their original aspect ratio,
8890
:::danger
8991
**If you're planning to rewrite attachment sizing with your own CSS code** it's important to note that:
9092

91-
The sizing logic for images and videos inside the [`AttachmentConfigurationService`](../services/AttachmentConfigurationService.mdx) requires that host elements of images and videos (ususally `img` and `video` elements) have `max-height`/`height` and `max-width` properties defined and that these values can be computed to a valid pixel value using the [`getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle).
93+
The sizing logic for images and videos inside the [`AttachmentConfigurationService`](../services/AttachmentConfigurationService.mdx) requires that host elements of images and videos (ususally `img` and `video` elements) have `max-height`/`height` and `max-width` properties defined and that these values can be computed to a valid pixel value using the [`getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle) (for more information refer to the [Maximum size](#maximum-size) section).
9294
:::
9395

9496
[//]: # "Start of generated content"

0 commit comments

Comments
 (0)