~emersion/goguma-dev

Do not crop images horizontally v1 APPLIED

delthas: 1
 Do not crop images horizontally

 1 files changed, 0 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/goguma-dev/patches/38869/mbox | git am -3
Learn more about email & git

[PATCH] Do not crop images horizontally Export this patch

While making the image height fixed is important to avoid layout
changes, there is no impact to letting the image take as much
width as it needs, dynamically.

For images that are wider than they are tall, this enables the user
to see the full image without cropping the left and right parts of
the image.

Tested locally on both compact and non-compact modes.
---
 lib/widget/link_preview.dart | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/widget/link_preview.dart b/lib/widget/link_preview.dart
index 3f248c3..698fc13 100644
--- a/lib/widget/link_preview.dart
+++ b/lib/widget/link_preview.dart
@@ -58,7 +58,6 @@ class _PhotoPreview extends StatelessWidget {
			},
			child: Image.network(
				preview.url.toString(),
				width: 250,
				height: 250,
				fit: BoxFit.cover,
				filterQuality: FilterQuality.medium,

base-commit: 09f6ece77bbf9e3727541eea66b07e2986779bf0
-- 
2.39.1
Pushed, thanks!