From 679f9b66ed4a435ca81a2fb16bacab6a01833c36 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 20 Aug 2025 17:22:04 -0400 Subject: [PATCH] Allows the height of the preview to adjust to the width of the preview image --- .../com/vitorpamplona/amethyst/ui/components/UrlPreviewCard.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/UrlPreviewCard.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/UrlPreviewCard.kt index aab99a11a..a006bd5ab 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/UrlPreviewCard.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/UrlPreviewCard.kt @@ -104,7 +104,7 @@ fun UrlPreviewCard( AsyncImage( model = previewInfo.imageUrlFullPath, contentDescription = previewInfo.title, - contentScale = ContentScale.Crop, + contentScale = ContentScale.FillWidth, modifier = previewCardImageModifier, )